package com.cadre.web.controller.officer;

import com.cadre.common.core.domain.model.LoginUser;
import com.cadre.common.utils.R;
import com.cadre.common.utils.SecurityUtils;
import com.cadre.common.utils.ZipUtil;
import com.cadre.common.utils.common.GenerateUUID;
import com.cadre.common.utils.oldutil.DateUtil;
import com.cadre.common.utils.oldutil.PinYinUtil;
import com.cadre.system.domain.officer.*;
import com.cadre.system.service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import org.w3c.dom.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.*;

@Api(value = "数据迁移Controller", tags = {"数据迁移接口"})
@RequestMapping({"/profess/datamigrate"})
@RestController
/* loaded from: DataMigrationController.class */
public class DataMigrationController {
    @Resource
    A01Service a01Service;
    @Resource
    A22Service a22Service;
    @Resource
    UnitInfoService unitService;
    @Resource
    B01Service b01Service;
    @Resource
    A19Service a19Service;
    @Resource
    A10Service a10Service;
    @Autowired
    A04Service a04Service;
    @Resource
    A26Service a26Service;
    @Resource
    A79Service a79Service;
    @Resource
    A16Service a16Service;
    @Resource
    DIC_ZBService dIC_ZBService;
    @Resource
    PersonRelationService personRelationService;
    @Value("${ModelFilePath}")
    private String ModelFilePath;
    @Autowired
    A04Controller a04Controller;
    static List<A01> a01List;
    static List<B01> b01List;
    private List<A01> a01ListRepeat;
    List<DIC_ZB> dicList;
    static int flag = 0;
    private static String[] zzmms = {"中共党员", "预备党员", "共青团员", "民革", "民盟", "民建", "民进", "农工党", "致公党", "九三学社", "台盟", "无党派", "群众"};
    private static String[] mzs = {"汉族", "蒙古族", "回族", "藏族", "维吾尔族", "苗族", "彝族", "壮族", "布依族", "朝鲜族", "满族", "侗族", "白族", "土家族", "哈萨克族", "傣族", "黎族", "傈僳族", "佤族", "高山族", "拉祜族", "水族", "东乡族", "景颇族", "土族", "达斡尔族", "仫佬族", "羌族", "撒拉族", "毛南族", "仡佬族", "锡伯族", "阿昌族", "普米族", "塔吉克族", "怒族", "俄罗斯族", "鄂温克族", "德昂族", "保安族", "裕固族", "京族", "塔塔尔族", "独龙族", "鄂伦春族", "门巴族", "珞巴族", "基诺族"};
    private String clearTable = "A01,A01EDUCATION,A01TAB,A02,A04,A05,A09,A10,A12,A19,A22,A25,A26,A27,A37,A40,A64,A79,A86,A87,A91,A91TEMP,A93,B01,B02,B03,B04,B41,B50,BATCHCONFERENCE,CADRE_DICTIONARY,CONFERNAMELIST,PX_JGXX,PX_PXBXX_DETAIL,PX_RYPXXX,TEMPFILE";
    private StringBuilder logMsg = new StringBuilder();
    private String newLogMsg = "";
    private List<String> logList = new ArrayList();
    private int process = 0;

    @PostMapping({"/revoke"})
    public R revoke() {
        if (a01List.size() > 0) {
            String[] flowids = new String[a01List.size()];
            for (int i = 0; i < a01List.size(); i++) {
                flowids[i] = a01List.get(i).getFlowid();
            }
            deleteData("A01", flowids);
            deleteData("A22", flowids);
            deleteData("A19", flowids);
            deleteData("A10", flowids);
            deleteData("A04", flowids);
            deleteData("A26", flowids);
            deleteData("A79", flowids);
            deleteData("A16", flowids);
        }
        if (b01List.size() > 0) {
            String[] flowids2 = new String[b01List.size()];
            for (int i2 = 0; i2 < b01List.size(); i2++) {
                flowids2[i2] = b01List.get(i2).getFlowid();
            }
            deleteData("B01", flowids2);
        }
        return R.ok("删除成功");
    }

    public int deleteData(String tableName, String[] id) {
        List<String> idList = Arrays.asList(id);
        if ("A01".equals(tableName)) {
            this.a01Service.getBaseMapper().deleteBatchIds(idList);
            return 1;
        } else if ("B01".equals(tableName)) {
            this.unitService.deleteBatchIdsChild(idList);
            return 1;
        } else {
            this.a19Service.deleteBatchPersonid(tableName, idList);
            return 1;
        }
    }

    @PostMapping({"/all"})
    @ApiOperation("完全迁移")
    public R all(@RequestBody MultipartFile file, HttpServletRequest request, HttpServletResponse response) {
        LoginUser user = SecurityUtils.getLoginUser();
        DataMigrationController.class.getClassLoader().getResource("tempfile").getPath();
        String loadPath = this.ModelFilePath + File.separator + user.getUserId();
        File loadDir = new File(loadPath);
        if (!loadDir.exists()) {
            loadDir.mkdirs();
        } else {
            deleteFile(loadDir);
        }
        try {
            ZipUtil.zipUncompress(transferToFile(file).getPath(), loadPath);
            a01List = new ArrayList();
            b01List = new ArrayList();
            this.a01ListRepeat = new ArrayList();
            try {
                Map<String, Object> dicMap = new HashMap<>();
                dicMap.put("tableName", "DIC_ZB01");
                this.dicList = this.dIC_ZBService.getAll(dicMap);
            } catch (Exception e) {
            }
            SimpleDateFormat sdf = new SimpleDateFormat(DateUtil.FORMAT_TWO);
            String now = sdf.format(new Date());
            setProcess(0);
            this.logMsg = new StringBuilder();
            this.logList.add(now + " 开始完全数据...");
            this.logList.add("清除全部数据...");
            clearData();
            this.logList.add("清除全部数据完毕...");
            this.logList.add("导入A01干部信息数据...");
            importA01(loadPath + File.separator + "Table" + File.separator + "A01.xml", a01List, this.a01ListRepeat);
            importPhoto(loadPath + File.separator + "Photos" + File.separator, a01List);
            this.logList.add("导入A01干部信息数据完毕...");
            setProcess(30);
            this.logList.add("导入B01单位信息数据...");
            importB01(loadPath + File.separator + "Table" + File.separator + "B01.xml");
            this.logList.add("导入B01单位信息数据完毕...");
            loadnewdt();
            setProcess(40);
            this.logList.add("设置B01单位父节点数据...");
            setParentID(null);
            this.logList.add("设置B01单位父节点数据完毕...");
            setProcess(45);
            this.logList.add("设置A19职务信息数据...");
            importA02(loadPath + File.separator + "Table" + File.separator + "A02.xml", a01List);
            this.logList.add("设置A19职务信息数据完毕...");
            setProcess(55);
            this.logList.add("设置A01任现职务层次时间数据...");
            importA05(loadPath + File.separator + "Table" + File.separator + "A05.xml", a01List);
            this.logList.add("设置A01任现职务层次时间数据完毕...");
            setProcess(58);
            this.logList.add("设置A10专业技术职务数据...");
            importA06(loadPath + File.separator + "Table" + File.separator + "A06.xml", a01List);
            this.logList.add("设置A10专业技术职务数据完毕...");
            setProcess(67);
            this.logList.add("设置A04学历数据...");
            importA08(loadPath + File.separator + "Table" + File.separator + "A08.xml", a01List);
            this.logList.add("设置A04学历数据完毕...");
            setProcess(75);
            this.logList.add("设置A26学历数据...");
            importA14(loadPath + File.separator + "Table" + File.separator + "A14.xml", a01List);
            this.logList.add("设置A26学历数据完毕...");
            setProcess(80);
            this.logList.add("设置A79家庭成员数据...");
            importA36(loadPath + File.separator + "Table" + File.separator + "A36.xml", a01List);
            this.logList.add("设置A79家庭成员数据完毕...");
            setProcess(90);
            this.logList.add("设置A16考核情况数据...");
            importA15(loadPath + File.separator + "Table" + File.separator + "A15.xml", a01List);
            this.logList.add("设置A16考核情况数据完毕...");
            setProcess(95);
            this.logList.add("设置A01干部类别数据...");
            importA30(loadPath + File.separator + "Table" + File.separator + "A30.xml", a01List);
            this.logList.add("设置A01干部类别数据完毕...");
            setProcess(100);
            this.logList.add(sdf.format(new Date()) + " 结束完全迁移数据...共迁移人员：" + a01List.size() + "人");
            return R.ok().put("data", (Object) "完成数据迁移").put("repeat", (Object) this.a01ListRepeat);
        } catch (Exception e2) {
            return R.error(file.getName() + ":上传失败");
        }
    }

    @PostMapping({"/part"})
    @ApiOperation("部分迁移")
    public R list(@RequestBody MultipartFile file, String parentID, HttpServletRequest request, HttpServletResponse response) {
        LoginUser user = SecurityUtils.getLoginUser();
        DataMigrationController.class.getClassLoader().getResource("tempfile").getPath();
        String loadPath = this.ModelFilePath + File.separator + user.getUserId();
        File loadDir = new File(loadPath);
        if (!loadDir.exists()) {
            loadDir.mkdirs();
        } else {
            deleteFile(loadDir);
        }
        try {
            ZipUtil.zipUncompress(transferToFile(file).getPath(), loadPath);
            a01List = new ArrayList();
            this.a01ListRepeat = new ArrayList();
            b01List = new ArrayList();
            try {
                Map<String, Object> dicMap = new HashMap<>();
                dicMap.put("tableName", "DIC_ZB01");
                this.dicList = this.dIC_ZBService.getAll(dicMap);
            } catch (Exception e) {
            }
            SimpleDateFormat sdf = new SimpleDateFormat(DateUtil.FORMAT_TWO);
            String now = sdf.format(new Date());
            setProcess(0);
            this.logMsg = new StringBuilder();
            this.logList = new ArrayList();
            this.logList.add(now + " 开始迁移数据...");
            this.logList.add("清除全部数据...");
            if (parentID == null || "".equals(parentID) || "null".equals(parentID)) {
                clearData();
            }
            this.logList.add("清除全部数据完毕...");
            this.logList.add("导入A01干部信息数据...");
            loadnewdt();
            importA01(loadPath + File.separator + "Table" + File.separator + "A01.xml", a01List, this.a01ListRepeat);
            importPhoto(loadPath + File.separator + "Photos" + File.separator, a01List);
            this.logList.add("导入A01干部信息数据完毕...");
            setProcess(25);
            this.logList.add("导入B01单位信息数据...");
            importB01(loadPath + File.separator + "Table" + File.separator + "B01.xml");
            this.logList.add("导入B01单位信息数据完毕...");
            setProcess(35);
            this.logList.add("设置B01单位父节点数据...");
            setParentID(parentID);
            this.logList.add("设置B01单位父节点数据完毕...");
            setProcess(45);
            this.logList.add("设置A19职务信息数据...");
            importA02(loadPath + File.separator + "Table" + File.separator + "A02.xml", a01List);
            this.logList.add("设置A19职务信息数据完毕...");
            setProcess(68);
            this.logList.add("设置A01任现职务层次时间数据...");
            importA05(loadPath + File.separator + "Table" + File.separator + "A05.xml", a01List);
            this.logList.add("设置A01任现职务层次时间数据完毕...");
            setProcess(60);
            this.logList.add("设置A10专业技术职务数据...");
            importA06(loadPath + File.separator + "Table" + File.separator + "A06.xml", a01List);
            this.logList.add("设置A10专业技术职务数据完毕...");
            setProcess(67);
            this.logList.add("设置A04学历数据...");
            importA08(loadPath + File.separator + "Table" + File.separator + "A08.xml", a01List);
            this.logList.add("设置A04学历数据完毕...");
            setProcess(75);
            this.logList.add("设置A26学历数据...");
            importA14(loadPath + File.separator + "Table" + File.separator + "A14.xml", a01List);
            this.logList.add("设置A26学历数据完毕...");
            setProcess(80);
            this.logList.add("设置A79家庭成员数据...");
            importA36(loadPath + File.separator + "Table" + File.separator + "A36.xml", a01List);
            this.logList.add("设置A79家庭成员数据完毕...");
            setProcess(90);
            this.logList.add("设置A16考核情况数据...");
            importA15(loadPath + File.separator + "Table" + File.separator + "A15.xml", a01List);
            this.logList.add("设置A16考核情况数据完毕...");
            setProcess(95);
            this.logList.add("设置A01干部类别数据...");
            importA30(loadPath + File.separator + "Table" + File.separator + "A30.xml", a01List);
            this.logList.add("设置A01干部类别数据完毕...");
            setProcess(98);
            String now2 = sdf.format(new Date());
            this.logList.add("设置B01单位编码..." + a01List.size() + "人");
            this.unitService.syncPDAOrder();
            try {
                this.unitService.updateNavigatDeptUnitcode();
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            for (int n = 0; n < a01List.size(); n++) {
                try {
                    List<A04> a04List = this.a04Service.selectByxl(a01List.get(n).getFlowid());
                    if (!CollectionUtils.isEmpty(a04List)) {
                    }
                    this.a04Controller.updateA01_3(a04List, a01List.get(n).getFlowid());
                } catch (Exception e2) {
                }
            }
            this.logList.add(now2 + " 结束迁移数据...共迁移人员：" + a01List.size() + "人");
            setProcess(100);
            return R.ok().put("data", (Object) "完成数据迁移").put("repeat", (Object) this.a01ListRepeat).put("successnum", (Object) Integer.valueOf(a01List.size()));
        } catch (Exception e3) {
            return R.error(file.getName() + ":上传失败");
        }
    }

    @PostMapping({"/showlog"})
    @ApiOperation("输出日志")
    public R showlog(@RequestBody MultipartFile file, HttpServletRequest request, HttpServletResponse response) {
        return R.ok().put("log", (Object) this.logMsg.toString()).put("process", (Object) Integer.valueOf(getProcess())).put("newlog", (Object) this.logList);
    }

    public void clearData() {
        for (String tableName : this.clearTable.split(",")) {
            try {
                this.a01Service.deleteData(tableName);
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        }
    }

    public void importA01(String loadFile, List<A01> a01List2, List<A01> a01ListRepeat) {
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(loadFile));
            System.out.println("根节点: " + doc.getDocumentElement().getTagName());
            System.out.println("递归解析--------------begin------------------");
            parseElementA01(doc.getDocumentElement(), a01List2, a01ListRepeat);
            System.out.println("递归解析--------------end------------------");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public void importPhoto(String loadFile, List<A01> a01List2) {
        File[] files = new File(loadFile).listFiles();
        if (files != null) {
            for (File f : files) {
                String name = f.getName();
                System.out.println("loadPhoto filename===>" + name);
                try {
                    String prescode = name.split("\\.")[0];
                    File loadPhoto = new File(loadFile + File.separator + name);
                    System.out.println("loadPhoto===>" + loadPhoto);
                    if (loadPhoto.isDirectory()) {
                        for (File f1 : loadPhoto.listFiles()) {
                            byte[] bs = image2byte(f1);
                            A01 a01 = new A01();
                            for (int i = 0; i < a01List2.size(); i++) {
                                if (prescode.equals(a01List2.get(i).getPrescode())) {
                                    a01.setFlowid(a01List2.get(i).getFlowid());
                                }
                            }
                            a01.setA0171(bs);
                            this.a01Service.setPersonPhoto(a01);
                        }
                    } else {
                        byte[] bs2 = image2byte(loadPhoto);
                        A01 a012 = new A01();
                        for (int i2 = 0; i2 < a01List2.size(); i2++) {
                            if (prescode.equals(a01List2.get(i2).getPrescode())) {
                                a012.setFlowid(a01List2.get(i2).getFlowid());
                            }
                        }
                        a012.setA0171(bs2);
                        this.a01Service.setPersonPhoto(a012);
                    }
                } catch (Exception ex) {
                    ex.printStackTrace();
                }
            }
        }
    }

    public byte[] image2byte(File file) {
        byte[] data = null;
        try {
            FileInputStream input = new FileInputStream(file);
            ByteArrayOutputStream output = new ByteArrayOutputStream();
            byte[] buf = new byte[1024];
            while (true) {
                int numBytesRead = input.read(buf);
                if (numBytesRead == -1) {
                    break;
                }
                output.write(buf, 0, numBytesRead);
            }
            data = output.toByteArray();
            output.close();
            input.close();
        } catch (FileNotFoundException ex1) {
            ex1.printStackTrace();
        } catch (IOException ex12) {
            ex12.printStackTrace();
        }
        return data;
    }

    public void parseElementA01(Element element, List<A01> a01List2, List<A01> a01ListRepeat) {
        System.out.print("<" + element.getTagName());
        NamedNodeMap attris = element.getAttributes();
        for (int i = 0; i < attris.getLength(); i++) {
            Attr attr = (Attr) attris.item(i);
            System.out.print(" " + attr.getName() + "=\"" + attr.getValue() + "\"");
        }
        System.out.println(">");
        NodeList nodeList = element.getChildNodes();
        for (int temp = 0; temp < nodeList.getLength(); temp++) {
            Node childNode = nodeList.item(temp);
            if (childNode.getNodeType() == 1) {
                if (childNode.hasChildNodes()) {
                    parseElementA01((Element) childNode, a01List2, a01ListRepeat);
                } else if (childNode.getNodeType() != 8) {
                    System.out.print(childNode.getTextContent());
                    NamedNodeMap atts = childNode.getAttributes();
                    A01 a01 = new A01();
                    a01.setFlowid(GenerateUUID.getUUID());
                    A22 a22 = new A22();
                    a22.setFlowid(GenerateUUID.getUUID());
                    for (int j = 0; j < atts.getLength(); j++) {
                        Node attr2 = atts.item(j);
                        System.out.println("子节点的属性名：" + attr2.getNodeName() + "_____属性值：" + attr2.getTextContent());
                        if ("A0101".equals(attr2.getNodeName())) {
                            a01.setA0101(attr2.getNodeValue());
                        }
                        if ("A0101".equals(attr2.getNodeName())) {
                            try {
                                a01.setA0102((PinYinUtil.getPingYin(attr2.getNodeValue()) == null ? "" : PinYinUtil.getPingYin(attr2.getNodeValue())).toUpperCase() + "," + (PinYinUtil.getFirstSpell(attr2.getNodeValue()) == null ? "" : PinYinUtil.getFirstSpell(attr2.getNodeValue())).toUpperCase());
                            } catch (Exception e) {
                                a01.setA0102("");
                            }
                        }
                        if ("A0104".equals(attr2.getNodeName())) {
                            if ("1".equals(attr2.getNodeValue())) {
                                a01.setA0105("男");
                            } else {
                                a01.setA0105("女");
                            }
                        }
                        if ("A0107".equals(attr2.getNodeName())) {
                            try {
                                String formatter = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter = "yyyyMMdd";
                                }
                                a01.setA0106(new SimpleDateFormat(formatter).parse(attr2.getNodeValue()));
                            } catch (Exception e2) {
                            }
                        }
                        if ("A0184".equals(attr2.getNodeName())) {
                            a01.setA0107(attr2.getNodeValue());
                        }
                        if ("A0111A".equals(attr2.getNodeName())) {
                            a01.setA0108(attr2.getNodeValue());
                        }
                        if ("A0114A".equals(attr2.getNodeName())) {
                            a01.setA0110(attr2.getNodeValue());
                        }
                        if ("A0117".equals(attr2.getNodeName())) {
                            try {
                                a01.setA0130(mzs[Integer.parseInt(attr2.getNodeValue()) - 1]);
                            } catch (Exception e3) {
                                a01.setA0130("其他");
                            }
                        }
                        if ("A0128".equals(attr2.getNodeName())) {
                            a01.setA0128(attr2.getNodeValue());
                        }
                        if ("A0134".equals(attr2.getNodeName())) {
                            try {
                                String formatter2 = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter2 = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter2 = "yyyyMMdd";
                                }
                                a01.setA0138(new SimpleDateFormat(formatter2).parse(attr2.getNodeValue()));
                            } catch (Exception e4) {
                            }
                        }
                        if ("A0187A".equals(attr2.getNodeName())) {
                            a01.setA0152(attr2.getNodeValue());
                        }
                        a01.setA0173("1");
                        if ("A1701".equals(attr2.getNodeName())) {
                            a01.setA0177(formatA0177(attr2.getNodeValue()));
                            a01.setA0177b(formatA0177(attr2.getNodeValue()));
                        }
                        if ("A0160".equals(attr2.getNodeName())) {
                            a01.setA0178(getA0178(attr2.getNodeValue()));
                        }
                        if ("A0221".equals(attr2.getNodeName())) {
                            a01.setA0179(getA0179(attr2.getNodeValue()));
                        }
                        if ("A0192C".equals(attr2.getNodeName())) {
                            try {
                                String formatter3 = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter3 = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter3 = "yyyyMMdd";
                                }
                                a01.setA0180(new SimpleDateFormat(formatter3).parse(attr2.getNodeValue()));
                            } catch (Exception e5) {
                            }
                        }
                        if ("A0121".equals(attr2.getNodeName())) {
                            a01.setA0182(getA0182(attr2.getNodeValue()));
                        }
                        if ("A0192".equals(attr2.getNodeName())) {
                            a01.setA0183(attr2.getNodeValue());
                        }
                        if ("A0144".equals(attr2.getNodeName())) {
                            try {
                                String formatter4 = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter4 = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter4 = "yyyyMMdd";
                                }
                                a01.setA0184(new SimpleDateFormat(formatter4).parse(attr2.getNodeValue()));
                            } catch (Exception e6) {
                            }
                        }
                        if ("A0196".equals(attr2.getNodeName())) {
                            a01.setA0192(attr2.getNodeValue());
                        }
                        if ("A0000".equals(attr2.getNodeName())) {
                            a01.setPrescode(attr2.getNodeValue());
                        }
                        if ("A0140".equals(attr2.getNodeName())) {
                            a01.setA0184a(attr2.getNodeValue());
                        }
                        if ("A14Z101".equals(attr2.getNodeName())) {
                            a01.setA2601(attr2.getNodeValue());
                        }
                        if ("A15Z101".equals(attr2.getNodeName())) {
                            a01.setA0195(attr2.getNodeValue());
                        }
                        if ("A0192E".equals(attr2.getNodeName())) {
                            a01.setA0198(getA0198(attr2.getNodeValue()));
                        }
                        if ("A0144".equals(attr2.getNodeName())) {
                            try {
                                String formatter5 = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter5 = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter5 = "yyyyMMdd";
                                }
                                a22.setA2210(new SimpleDateFormat(formatter5).parse(attr2.getNodeValue()));
                            } catch (Exception e7) {
                            }
                        }
                        if ("A0141".equals(attr2.getNodeName())) {
                            try {
                                a22.setA2205(zzmms[Integer.parseInt(attr2.getNodeValue())]);
                            } catch (Exception ex) {
                                a22.setA2205(zzmms[zzmms.length - 1]);
                                ex.printStackTrace();
                            }
                        }
                    }
                    System.out.println("A01-------------子节点的属性输出完毕");
                    a01.setA0201("1");
                    if (this.personRelationService.getGBA01List1(a01.getA0101(), DateUtil.dateToString(a01.getA0106(), "yyyy-MM"), a01.getA0107()) != null) {
                        a01.setErrorMsg("A01(" + a01.getFlowid() + ") Insert Error:人员已存在");
                        this.a01ListRepeat.add(a01);
                    } else {
                        try {
                            a22.setPersonid(a01.getFlowid());
                            a22.setSerial((short) 1);
                            this.a22Service.insertSelective(a22);
                        } catch (Exception e8) {
                        }
                        try {
                            this.a01Service.insertSelective(a01);
                            a01List2.add(a01);
                        } catch (Exception ex2) {
                            this.logList.add("A01(" + a01.getFlowid() + ") Insert Error:" + ex2.getMessage());
                            this.logList.add("");
                            a01.setErrorMsg("A01(" + a01.getFlowid() + ") Insert Error:" + ex2.getMessage());
                            this.a01ListRepeat.add(a01);
                        }
                    }
                }
            }
        }
        System.out.println("</" + element.getTagName() + ">");
    }

    public void importB01(String loadFile) {
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(loadFile));
            System.out.println("根节点: " + doc.getDocumentElement().getTagName());
            System.out.println("递归解析--------------begin------------------");
            parseElementB01(doc.getDocumentElement());
            System.out.println("递归解析--------------end------------------");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public void parseElementB01(Element element) {
        short serial;
        System.out.print("<" + element.getTagName());
        NamedNodeMap attris = element.getAttributes();
        for (int i = 0; i < attris.getLength(); i++) {
            Attr attr = (Attr) attris.item(i);
            System.out.print(" " + attr.getName() + "=\"" + attr.getValue() + "\"");
        }
        System.out.println(">");
        NodeList nodeList = element.getChildNodes();
        for (int temp = 0; temp < nodeList.getLength(); temp++) {
            Node childNode = nodeList.item(temp);
            if (childNode.getNodeType() == 1) {
                if (childNode.hasChildNodes()) {
                    parseElementB01((Element) childNode);
                } else if (childNode.getNodeType() != 8) {
                    System.out.print(childNode.getTextContent());
                    NamedNodeMap atts = childNode.getAttributes();
                    B01 b01 = new B01();
                    b01.setFlowid(GenerateUUID.getUUID());
                    for (int j = 0; j < atts.getLength(); j++) {
                        Node attr2 = atts.item(j);
                        System.out.println("子节点的属性名：" + attr2.getNodeName() + "_____属性值：" + attr2.getNodeValue());
                        if ("B0101".equals(attr2.getNodeName())) {
                            b01.setB0101(attr2.getNodeValue());
                        }
                        if ("B0104".equals(attr2.getNodeName())) {
                            b01.setB0103(attr2.getNodeValue());
                        }
                        if ("B0117".equals(attr2.getNodeName())) {
                            b01.setB0118(getB0118(attr2.getNodeValue()));
                        }
                        if ("B0124".equals(attr2.getNodeName())) {
                            b01.setB0119(attr2.getNodeValue());
                        }
                        if ("B0120".equals(attr2.getNodeName())) {
                            b01.setB0120(getB0120(attr2.getNodeValue()));
                        }
                        if ("B0122".equals(attr2.getNodeName())) {
                            b01.setB0122(getB0122(attr2.getNodeValue()));
                        }
                        if ("B0183".equals(attr2.getNodeName())) {
                            try {
                                b01.setB0145(Short.valueOf(Short.parseShort(attr2.getNodeValue())));
                            } catch (Exception ex) {
                                ex.printStackTrace();
                            }
                        }
                        if ("B0185".equals(attr2.getNodeName())) {
                            try {
                                b01.setB0146(Short.valueOf(Short.parseShort(attr2.getNodeValue())));
                            } catch (Exception e) {
                            }
                        }
                        if ("B0111".equals(attr2.getNodeName())) {
                            b01.setUnitcode(attr2.getNodeValue());
                        }
                        if ("B0121".equals(attr2.getNodeName())) {
                            b01.setB0121(attr2.getNodeValue());
                            try {
                                Short.valueOf(Short.parseShort(attr2.getNodeValue()));
                            } catch (Exception e2) {
                            }
                        }
                        if ("SORTID".equals(attr2.getNodeName())) {
                            try {
                                serial = Short.valueOf(Short.parseShort(attr2.getNodeValue()));
                            } catch (Exception e3) {
                                serial = (short) 99;
                            }
                            b01.setSerial(serial);
                        }
                    }
                    System.out.println("B01-------------子节点的属性输出完毕");
                    try {
                        this.unitService.addUnit(b01);
                    } catch (Exception ex2) {
                        this.logList.add("B01(" + b01.getFlowid() + ") Insert Error:" + ex2.getMessage());
                        this.logList.add("");
                        ex2.printStackTrace();
                    }
                    b01List.add(b01);
                }
            }
        }
        System.out.println("</" + element.getTagName() + ">");
    }

    public void loadnewdt() {
        this.a01Service.updateTableColumnWidth("alter table B01 modify B0103 varchar2(100)");
        this.a01Service.updateTableColumnWidth("alter table A10 modify A1010 varchar2(4)");
        this.a01Service.updateTableColumnWidth("alter table A01 modify A0128 varchar2(20)");
        this.a01Service.updateTableColumnWidth("alter table A10 modify A1005 varchar2(100)");
    }

    public void setParentID(String parentID) {
        for (int i = 0; i < b01List.size(); i++) {
            this.b01Service.updateParentid(b01List.get(i).getB0121(), b01List.get(i).getUnitcode());
        }
        this.b01Service.updateParentidNull(parentID);
    }

    public void importA02(String loadFile, List<A01> a01List2) {
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(loadFile));
            System.out.println("根节点: " + doc.getDocumentElement().getTagName());
            System.out.println("递归解析--------------begin------------------");
            parseElementA02(doc.getDocumentElement(), a01List2);
            System.out.println("递归解析--------------end------------------");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public void parseElementA02(Element element, List<A01> a01List2) {
        System.out.print("<" + element.getTagName());
        NamedNodeMap attris = element.getAttributes();
        for (int i = 0; i < attris.getLength(); i++) {
            Attr attr = (Attr) attris.item(i);
            System.out.print(" " + attr.getName() + "=\"" + attr.getValue() + "\"");
        }
        System.out.println(">");
        NodeList nodeList = element.getChildNodes();
        for (int temp = 0; temp < nodeList.getLength(); temp++) {
            Node childNode = nodeList.item(temp);
            if (childNode.getNodeType() == 1) {
                if (childNode.hasChildNodes()) {
                    parseElementA02((Element) childNode, a01List2);
                } else if (childNode.getNodeType() != 8) {
                    System.out.print(childNode.getTextContent());
                    NamedNodeMap atts = childNode.getAttributes();
                    A19 a19 = new A19();
                    a19.setFlowid(GenerateUUID.getUUID());
                    for (int j = 0; j < atts.getLength(); j++) {
                        Node attr2 = atts.item(j);
                        System.out.println("子节点的属性名：" + attr2.getNodeName() + "_____属性值：" + attr2.getNodeValue());
                        if ("A0255".equals(attr2.getNodeName())) {
                            a19.setA1935(Short.valueOf(Short.parseShort(attr2.getNodeValue())));
                        }
                        if ("A0255".equals(attr2.getNodeName())) {
                            a19.setSort(Short.valueOf(Short.parseShort(attr2.getNodeValue())));
                        }
                        if ("A0219".equals(attr2.getNodeName())) {
                            if (attr2.getNodeValue() == null || attr2.getNodeValue().length() < 1) {
                                a19.setA1940((short) 0);
                            } else {
                                a19.setA1940(Short.valueOf(Short.parseShort(attr2.getNodeValue().substring(0, 1))));
                            }
                        }
                        if ("A0243".equals(attr2.getNodeName())) {
                            try {
                                String formatter = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter = "yyyyMMdd";
                                }
                                a19.setA1905(new SimpleDateFormat(formatter).parse(attr2.getNodeValue()));
                            } catch (Exception e) {
                            }
                        }
                        if ("A0225".equals(attr2.getNodeName())) {
                            a19.setA1956(Short.valueOf(Short.parseShort(attr2.getNodeValue() == "" ? "99" : attr2.getNodeValue())));
                        }
                        if ("A0201B".equals(attr2.getNodeName())) {
                            for (int i2 = 0; i2 < b01List.size(); i2++) {
                                if (attr2.getNodeValue().equals(b01List.get(i2).getUnitcode())) {
                                    a19.setA1915(b01List.get(i2).getFlowid());
                                }
                            }
                        }
                        if ("A0201A".equals(attr2.getNodeName())) {
                            a19.setA1916(attr2.getNodeValue());
                        }
                        if ("A0265".equals(attr2.getNodeName())) {
                            try {
                                String formatter2 = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter2 = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter2 = "yyyyMMdd";
                                }
                                a19.setA1910(new SimpleDateFormat(formatter2).parse(attr2.getNodeValue()));
                            } catch (Exception e2) {
                            }
                        }
                        if ("A0201E".equals(attr2.getNodeName())) {
                            a19.setA1950(getA1950(attr2.getNodeValue()));
                        }
                        if ("A0215A".equals(attr2.getNodeName())) {
                            a19.setA1920(attr2.getNodeValue());
                        }
                        if ("A0201D".equals(attr2.getNodeName())) {
                            a19.setA1945(Short.valueOf(Short.parseShort(attr2.getNodeValue())));
                        }
                        if ("A0000".equals(attr2.getNodeName())) {
                            for (int i3 = 0; i3 < a01List2.size(); i3++) {
                                if (attr2.getNodeValue().equals(a01List2.get(i3).getPrescode())) {
                                    a19.setPersonid(a01List2.get(i3).getFlowid());
                                }
                            }
                        }
                    }
                    System.out.println("A02-------------子节点的属性输出完毕");
                    if (a19.getPersonid() != null && !"".equals(a19.getPersonid())) {
                        try {
                            this.a19Service.saveA19(a19);
                        } catch (Exception ex) {
                            this.logList.add("A19(" + a19.getFlowid() + ") Insert Error:" + ex.getMessage());
                            this.logList.add("");
                        }
                    }
                }
            }
        }
        System.out.println("</" + element.getTagName() + ">");
    }

    public void importA05(String loadFile, List<A01> a01List2) {
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(loadFile));
            System.out.println("根节点: " + doc.getDocumentElement().getTagName());
            System.out.println("递归解析--------------begin------------------");
            parseElementA05(doc.getDocumentElement());
            System.out.println("递归解析--------------end------------------");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public void parseElementA05(Element element) {
        System.out.print("<" + element.getTagName());
        NamedNodeMap attris = element.getAttributes();
        for (int i = 0; i < attris.getLength(); i++) {
            Attr attr = (Attr) attris.item(i);
            System.out.print(" " + attr.getName() + "=\"" + attr.getValue() + "\"");
        }
        System.out.println(">");
        NodeList nodeList = element.getChildNodes();
        for (int temp = 0; temp < nodeList.getLength(); temp++) {
            Node childNode = nodeList.item(temp);
            if (childNode.getNodeType() == 1) {
                if (childNode.hasChildNodes()) {
                    parseElementA05((Element) childNode);
                } else if (childNode.getNodeType() != 8) {
                    System.out.print(childNode.getTextContent());
                    NamedNodeMap atts = childNode.getAttributes();
                    A01 a01 = new A01();
                    for (int j = 0; j < atts.getLength(); j++) {
                        Node attr2 = atts.item(j);
                        System.out.println("子节点的属性名：" + attr2.getNodeName() + "_____属性值：" + attr2.getNodeValue());
                        if ("A0524".equals(attr2.getNodeName())) {
                            try {
                                String formatter = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter = "yyyyMMdd";
                                }
                                a01.setA0180(new SimpleDateFormat(formatter).parse(attr2.getNodeValue()));
                            } catch (Exception e) {
                            }
                        }
                        if ("A0000".equals(attr2.getNodeName())) {
                            a01.setPrescode(attr2.getNodeValue());
                        }
                    }
                    System.out.println("A05-------------子节点的属性输出完毕");
                    try {
                        this.a01Service.updateA0180ByPrescode(a01);
                    } catch (Exception ex) {
                        this.logList.add("A0180(" + a01.getPrescode() + ") Update Error:" + ex.getMessage());
                        this.logList.add("");
                    }
                }
            }
        }
        System.out.println("</" + element.getTagName() + ">");
    }

    public void importA06(String loadFile, List<A01> a01List2) {
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(loadFile));
            System.out.println("根节点: " + doc.getDocumentElement().getTagName());
            System.out.println("递归解析--------------begin------------------");
            parseElementA06(doc.getDocumentElement(), a01List2);
            System.out.println("递归解析--------------end------------------");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public void parseElementA06(Element element, List<A01> a01List2) {
        System.out.print("<" + element.getTagName());
        NamedNodeMap attris = element.getAttributes();
        for (int i = 0; i < attris.getLength(); i++) {
            Attr attr = (Attr) attris.item(i);
            System.out.print(" " + attr.getName() + "=\"" + attr.getValue() + "\"");
        }
        System.out.println(">");
        NodeList nodeList = element.getChildNodes();
        for (int temp = 0; temp < nodeList.getLength(); temp++) {
            Node childNode = nodeList.item(temp);
            if (childNode.getNodeType() == 1) {
                if (childNode.hasChildNodes()) {
                    parseElementA06((Element) childNode, a01List2);
                } else if (childNode.getNodeType() != 8) {
                    System.out.print(childNode.getTextContent());
                    NamedNodeMap atts = childNode.getAttributes();
                    A10 a10 = new A10();
                    a10.setFlowid(GenerateUUID.getUUID());
                    for (int j = 0; j < atts.getLength(); j++) {
                        Node attr2 = atts.item(j);
                        System.out.println("子节点的属性名：" + attr2.getNodeName() + "_____属性值：" + attr2.getNodeValue());
                        if ("A0602".equals(attr2.getNodeName())) {
                            a10.setA1005(attr2.getNodeValue());
                        }
                        if ("A0607".equals(attr2.getNodeName())) {
                            a10.setA1010(getA1010(attr2.getNodeValue()));
                        }
                        if ("A0611".equals(attr2.getNodeName())) {
                            a10.setA1013(attr2.getNodeValue());
                        }
                        if ("A0611".equals(attr2.getNodeName())) {
                            try {
                                String formatter = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter = "yyyyMMdd";
                                }
                                a10.setA1015(new SimpleDateFormat(formatter).parse(attr2.getNodeValue()));
                            } catch (Exception e) {
                            }
                        }
                        a10.setIsout((short) 1);
                        if ("A0000".equals(attr2.getNodeName())) {
                            for (int i2 = 0; i2 < a01List2.size(); i2++) {
                                if (attr2.getNodeValue().equals(a01List2.get(i2).getPrescode())) {
                                    a10.setPersonid(a01List2.get(i2).getFlowid());
                                }
                            }
                        }
                    }
                    System.out.println("A06-------------子节点的属性输出完毕");
                    if (a10.getPersonid() != null && !"".equals(a10.getPersonid())) {
                        try {
                            this.a10Service.getBaseMapper().insert(a10);
                        } catch (Exception ex) {
                            this.logList.add("A10(" + a10.getFlowid() + ") Insert Error:" + ex.getMessage());
                            this.logList.add("");
                        }
                    }
                }
            }
        }
        System.out.println("</" + element.getTagName() + ">");
    }

    public void importA08(String loadFile, List<A01> a01List2) {
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(loadFile));
            System.out.println("根节点: " + doc.getDocumentElement().getTagName());
            System.out.println("递归解析--------------begin------------------");
            parseElementA08(doc.getDocumentElement(), a01List2);
            System.out.println("递归解析--------------end------------------");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public void parseElementA08(Element element, List<A01> a01List2) {
        System.out.print("<" + element.getTagName());
        NamedNodeMap attris = element.getAttributes();
        for (int i = 0; i < attris.getLength(); i++) {
            Attr attr = (Attr) attris.item(i);
            System.out.print(" " + attr.getName() + "=\"" + attr.getValue() + "\"");
        }
        System.out.println(">");
        NodeList nodeList = element.getChildNodes();
        for (int temp = 0; temp < nodeList.getLength(); temp++) {
            Node childNode = nodeList.item(temp);
            if (childNode.getNodeType() == 1) {
                if (childNode.hasChildNodes()) {
                    parseElementA08((Element) childNode, a01List2);
                } else if (childNode.getNodeType() != 8) {
                    System.out.print(childNode.getTextContent());
                    NamedNodeMap atts = childNode.getAttributes();
                    A04 a04 = new A04();
                    a04.setFlowid(GenerateUUID.getUUID());
                    for (int j = 0; j < atts.getLength(); j++) {
                        Node attr2 = atts.item(j);
                        System.out.println("子节点的属性名：" + attr2.getNodeName() + "_____属性值：" + attr2.getNodeValue());
                        if ("A0837".equals(attr2.getNodeName())) {
                            a04.setA0449(attr2.getNodeValue());
                        }
                        if ("A0801A".equals(attr2.getNodeName())) {
                            a04.setA0405(attr2.getNodeValue());
                        }
                        if ("A0814".equals(attr2.getNodeName())) {
                            a04.setA0435(attr2.getNodeValue());
                        }
                        if ("A0807".equals(attr2.getNodeName())) {
                            try {
                                String formatter = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter = "yyyyMMdd";
                                }
                                a04.setA0430(new SimpleDateFormat(formatter).parse(attr2.getNodeValue()));
                            } catch (Exception e) {
                            }
                        }
                        if ("A0827".equals(attr2.getNodeName())) {
                            a04.setA0410(attr2.getNodeValue());
                        }
                        if ("A0901A".equals(attr2.getNodeName())) {
                            a04.setA0440(attr2.getNodeValue());
                        }
                        if ("A0804".equals(attr2.getNodeName())) {
                            try {
                                String formatter2 = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter2 = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter2 = "yyyyMMdd";
                                }
                                a04.setA0415(new SimpleDateFormat(formatter2).parse(attr2.getNodeValue()));
                            } catch (Exception e2) {
                            }
                        }
                        if ("A0801B".equals(attr2.getNodeName())) {
                            String a0460 = attr2.getNodeValue();
                            if (a0460 != null && !"".equals(a0460)) {
                                a0460 = a0460.replace("A", "1").replace("B", "2").replace("C", "3").replace("D", "4").replace("E", "5").replace("F", "6").replace("G", "7").replace("H", "8").replace("I", "9").replace("J", "10").replace("K", "11").replace("L", "12").replace("M", "13").replace("N", "14").replace("O", "15").replace("P", "16").replace("Q", "17").replace("R", "18").replace("S", "19").replace("T", "20").replace("Y", "21").replace("V", "22").replace("W", "23").replace("X", "24").replace("Y", "25").replace("Z", "26");
                            }
                            a04.setA0460(a0460);
                        }
                        if ("A0901B".equals(attr2.getNodeName())) {
                            a04.setA0463(attr2.getNodeValue());
                        }
                        if ("A0824".equals(attr2.getNodeName())) {
                            a04.setA0411(attr2.getNodeValue());
                        }
                        if ("A0000".equals(attr2.getNodeName())) {
                            for (int i2 = 0; i2 < a01List2.size(); i2++) {
                                if (attr2.getNodeValue().equals(a01List2.get(i2).getPrescode())) {
                                    a04.setPersonid(a01List2.get(i2).getFlowid());
                                }
                            }
                        }
                        a04.setIsout((short) 1);
                        if ("A0811".equals(attr2.getNodeName())) {
                            a04.setA0425(attr2.getNodeValue());
                        }
                    }
                    System.out.println("A08-------------子节点的属性输出完毕");
                    if (a04.getPersonid() != null && !"".equals(a04.getPersonid())) {
                        try {
                            this.a04Service.insertSelectiveDate(a04);
                        } catch (Exception ex) {
                            this.logList.add("A04(" + a04.getFlowid() + ") Insert Error:" + ex.getMessage());
                            this.logList.add("");
                        }
                    }
                }
            }
        }
        System.out.println("</" + element.getTagName() + ">");
    }

    public void importA14(String loadFile, List<A01> a01List2) {
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(loadFile));
            System.out.println("根节点: " + doc.getDocumentElement().getTagName());
            System.out.println("递归解析--------------begin------------------");
            parseElementA14(doc.getDocumentElement(), a01List2);
            System.out.println("递归解析--------------end------------------");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public void parseElementA14(Element element, List<A01> a01List2) {
        System.out.print("<" + element.getTagName());
        NamedNodeMap attris = element.getAttributes();
        for (int i = 0; i < attris.getLength(); i++) {
            Attr attr = (Attr) attris.item(i);
            System.out.print(" " + attr.getName() + "=\"" + attr.getValue() + "\"");
        }
        System.out.println(">");
        NodeList nodeList = element.getChildNodes();
        for (int temp = 0; temp < nodeList.getLength(); temp++) {
            Node childNode = nodeList.item(temp);
            if (childNode.getNodeType() == 1) {
                if (childNode.hasChildNodes()) {
                    parseElementA14((Element) childNode, a01List2);
                } else if (childNode.getNodeType() != 8) {
                    System.out.print(childNode.getTextContent());
                    NamedNodeMap atts = childNode.getAttributes();
                    A26 a26 = new A26();
                    a26.setFlowid(GenerateUUID.getUUID());
                    for (int j = 0; j < atts.getLength(); j++) {
                        Node attr2 = atts.item(j);
                        System.out.println("子节点的属性名：" + attr2.getNodeName() + "_____属性值：" + attr2.getNodeValue());
                        if ("A1411A".equals(attr2.getNodeName())) {
                            a26.setA2615(attr2.getNodeValue());
                        }
                        if ("A1404A".equals(attr2.getNodeName())) {
                            a26.setA2605(attr2.getNodeValue());
                        }
                        if ("A1407".equals(attr2.getNodeName())) {
                            try {
                                String formatter = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter = "yyyyMMdd";
                                }
                                a26.setA2625(new SimpleDateFormat(formatter).parse(attr2.getNodeValue()));
                            } catch (Exception e) {
                            }
                        }
                        if ("A1404B".equals(attr2.getNodeName())) {
                            if (attr2.getNodeValue().length() >= 2) {
                                a26.setFlag(Short.valueOf(Short.parseShort(attr2.getNodeValue().substring(0, 1))));
                            } else {
                                a26.setFlag((short) 1);
                            }
                        }
                        if ("A0000".equals(attr2.getNodeName())) {
                            for (int i2 = 0; i2 < a01List2.size(); i2++) {
                                if (attr2.getNodeValue().equals(a01List2.get(i2).getPrescode())) {
                                    a26.setPersonid(a01List2.get(i2).getFlowid());
                                }
                            }
                        }
                        a26.setIsout((short) 1);
                    }
                    System.out.println("A14-------------子节点的属性输出完毕");
                    if (a26.getPersonid() != null && !"".equals(a26.getPersonid())) {
                        try {
                            this.a26Service.insertSelective(a26);
                        } catch (Exception ex) {
                            this.logList.add("A26(" + a26.getFlowid() + ") Insert Error:" + ex.getMessage());
                            this.logList.add("");
                        }
                    }
                }
            }
        }
        System.out.println("</" + element.getTagName() + ">");
    }

    public void importA36(String loadFile, List<A01> a01List2) {
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(loadFile));
            System.out.println("根节点: " + doc.getDocumentElement().getTagName());
            System.out.println("递归解析--------------begin------------------");
            parseElementA79(doc.getDocumentElement(), a01List2);
            System.out.println("递归解析--------------end------------------");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public void parseElementA79(Element element, List<A01> a01List2) {
        System.out.print("<" + element.getTagName());
        NamedNodeMap attris = element.getAttributes();
        for (int i = 0; i < attris.getLength(); i++) {
            Attr attr = (Attr) attris.item(i);
            System.out.print(" " + attr.getName() + "=\"" + attr.getValue() + "\"");
        }
        System.out.println(">");
        NodeList nodeList = element.getChildNodes();
        for (int temp = 0; temp < nodeList.getLength(); temp++) {
            Node childNode = nodeList.item(temp);
            if (childNode.getNodeType() == 1) {
                if (childNode.hasChildNodes()) {
                    parseElementA79((Element) childNode, a01List2);
                } else if (childNode.getNodeType() != 8) {
                    System.out.print(childNode.getTextContent());
                    NamedNodeMap atts = childNode.getAttributes();
                    A79 a79 = new A79();
                    a79.setFlowid(GenerateUUID.getUUID());
                    for (int j = 0; j < atts.getLength(); j++) {
                        Node attr2 = atts.item(j);
                        System.out.println("子节点的属性名：" + attr2.getNodeName() + "_____属性值：" + attr2.getNodeValue());
                        if ("A3604A".equals(attr2.getNodeName())) {
                            a79.setA7910(attr2.getNodeValue());
                        }
                        if ("A3601".equals(attr2.getNodeName())) {
                            a79.setA7921(attr2.getNodeValue());
                        }
                        if ("A3627".equals(attr2.getNodeName())) {
                            a79.setA7914(attr2.getNodeValue());
                        }
                        if ("A3607".equals(attr2.getNodeName())) {
                            try {
                                String formatter = "yyyy-MM-dd";
                                if (attr2.getNodeValue().length() == 6) {
                                    formatter = "yyyyMM";
                                }
                                if (attr2.getNodeValue().length() == 8) {
                                    formatter = "yyyyMMdd";
                                }
                                a79.setA7922(new SimpleDateFormat(formatter).parse(attr2.getNodeValue()));
                            } catch (Exception e) {
                            }
                        }
                        if ("A3611".equals(attr2.getNodeName())) {
                            a79.setA7923(attr2.getNodeValue());
                        }
                        if ("SORTID".equals(attr2.getNodeName())) {
                            a79.setSerial(Short.valueOf(Short.parseShort(attr2.getNodeValue())));
                        }
                        if ("A0000".equals(attr2.getNodeName())) {
                            for (int i2 = 0; i2 < a01List2.size(); i2++) {
                                if (attr2.getNodeValue().equals(a01List2.get(i2).getPrescode())) {
                                    a79.setPersonid(a01List2.get(i2).getFlowid());
                                }
                            }
                        }
                    }
                    System.out.println("A36-------------子节点的属性输出完毕");
                    if (a79.getPersonid() != null && !"".equals(a79.getPersonid())) {
                        try {
                            this.a79Service.insertForlog(a79);
                        } catch (Exception ex) {
                            this.logList.add("A79(" + a79.getFlowid() + ") Insert Error:" + ex.getMessage());
                            this.logList.add("");
                        }
                    }
                }
            }
        }
        System.out.println("</" + element.getTagName() + ">");
    }

    public void importA15(String loadFile, List<A01> a01List2) {
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(loadFile));
            System.out.println("根节点: " + doc.getDocumentElement().getTagName());
            System.out.println("递归解析--------------begin------------------");
            parseElementA15(doc.getDocumentElement(), a01List2);
            System.out.println("递归解析--------------end------------------");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public void parseElementA15(Element element, List<A01> a01List2) {
        System.out.print("<" + element.getTagName());
        NamedNodeMap attris = element.getAttributes();
        for (int i = 0; i < attris.getLength(); i++) {
            Attr attr = (Attr) attris.item(i);
            System.out.print(" " + attr.getName() + "=\"" + attr.getValue() + "\"");
        }
        System.out.println(">");
        NodeList nodeList = element.getChildNodes();
        for (int temp = 0; temp < nodeList.getLength(); temp++) {
            Node childNode = nodeList.item(temp);
            if (childNode.getNodeType() == 1) {
                if (childNode.hasChildNodes()) {
                    parseElementA15((Element) childNode, a01List2);
                } else if (childNode.getNodeType() != 8) {
                    System.out.print(childNode.getTextContent());
                    NamedNodeMap atts = childNode.getAttributes();
                    A16 a16 = new A16();
                    a16.setFlowid(GenerateUUID.getUUID());
                    for (int j = 0; j < atts.getLength(); j++) {
                        Node attr2 = atts.item(j);
                        System.out.println("子节点的属性名：" + attr2.getNodeName() + "_____属性值：" + attr2.getNodeValue());
                        if ("A1521".equals(attr2.getNodeName())) {
                            a16.setA1601(attr2.getNodeValue());
                        }
                        if ("A1517".equals(attr2.getNodeName())) {
                            a16.setA1602(getA1602(attr2.getNodeValue()));
                        }
                        if ("A0000".equals(attr2.getNodeName())) {
                            for (int i2 = 0; i2 < a01List2.size(); i2++) {
                                if (attr2.getNodeValue().equals(a01List2.get(i2).getPrescode())) {
                                    a16.setPersonid(a01List2.get(i2).getFlowid());
                                }
                            }
                        }
                    }
                    System.out.println("A16-------------子节点的属性输出完毕");
                    if (a16.getPersonid() != null && !"".equals(a16.getPersonid())) {
                        try {
                            this.a16Service.insertSelective(a16);
                        } catch (Exception ex) {
                            this.logList.add("A16(" + a16.getFlowid() + ") Insert Error:" + ex.getMessage());
                            this.logList.add("");
                        }
                    }
                }
            }
        }
        System.out.println("</" + element.getTagName() + ">");
    }

    public void importA30(String loadFile, List<A01> a01List2) {
        try {
            Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(loadFile));
            System.out.println("根节点: " + doc.getDocumentElement().getTagName());
            System.out.println("递归解析--------------begin------------------");
            parseElementA30(doc.getDocumentElement(), a01List2);
            System.out.println("递归解析--------------end------------------");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public void parseElementA30(Element element, List<A01> a01List2) {
        System.out.print("<" + element.getTagName());
        NamedNodeMap attris = element.getAttributes();
        for (int i = 0; i < attris.getLength(); i++) {
            Attr attr = (Attr) attris.item(i);
            System.out.print(" " + attr.getName() + "=\"" + attr.getValue() + "\"");
        }
        System.out.println(">");
        NodeList nodeList = element.getChildNodes();
        for (int temp = 0; temp < nodeList.getLength(); temp++) {
            Node childNode = nodeList.item(temp);
            if (childNode.getNodeType() == 1) {
                if (childNode.hasChildNodes()) {
                    parseElementA30((Element) childNode, a01List2);
                } else if (childNode.getNodeType() != 8) {
                    System.out.print(childNode.getTextContent());
                    NamedNodeMap atts = childNode.getAttributes();
                    A01 a01 = new A01();
                    for (int j = 0; j < atts.getLength(); j++) {
                        Node attr2 = atts.item(j);
                        System.out.println("子节点的属性名：" + attr2.getNodeName() + "_____属性值：" + attr2.getNodeValue());
                        a01.setA0181("其他干部");
                        if ("A0000".equals(attr2.getNodeName())) {
                            for (int i2 = 0; i2 < a01List2.size(); i2++) {
                                if (attr2.getNodeValue().equals(a01List2.get(i2).getPrescode())) {
                                    a01.setFlowid(a01List2.get(i2).getFlowid());
                                }
                            }
                        }
                    }
                    System.out.println("A30-------------子节点的属性输出完毕");
                    try {
                        this.a01Service.updateA0181ByPrescode(a01);
                    } catch (Exception ex) {
                        this.logList.add("A0181(" + a01.getPrescode() + ") Update Error:" + ex.getMessage());
                        this.logList.add("");
                    }
                }
            }
        }
        System.out.println("</" + element.getTagName() + ">");
    }

    public List<A01> getA01List() {
        return a01List;
    }

    public void setA01List(List<A01> a01List2) {
        a01List = a01List2;
    }

    public void deleteFile(File file) {
        if (file == null || !file.exists()) {
            flag = 0;
            System.out.println("文件删除失败,请检查文件路径是否正确");
            return;
        }
        File[] files = file.listFiles();
        for (File f : files) {
            System.out.println(file.getName());
            if (f.isDirectory()) {
                deleteFile(f);
            } else {
                f.delete();
            }
        }
    }

    private File transferToFile(MultipartFile multipartFile) {
        File file = null;
        try {
            String[] filename = multipartFile.getOriginalFilename().split("\\.");
            file = File.createTempFile(filename[0], "." + filename[1]);
            multipartFile.transferTo(file);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return file;
    }

    private String getA1602(String code) {
        String name;
        char c = 65535;
        switch (code.hashCode()) {
            case 49:
                if (code.equals("1")) {
                    c = 0;
                    break;
                }
                break;
            case 50:
                if (code.equals("2")) {
                    c = 1;
                    break;
                }
                break;
            case 51:
                if (code.equals("3")) {
                    c = 2;
                    break;
                }
                break;
            case 52:
                if (code.equals("4")) {
                    c = 3;
                    break;
                }
                break;
            case 53:
                if (code.equals("5")) {
                    c = 4;
                    break;
                }
                break;
            case 54:
                if (code.equals("6")) {
                    c = '\b';
                    break;
                }
                break;
            case 1616:
                if (code.equals("2B")) {
                    c = '\n';
                    break;
                }
                break;
            case 1647:
                if (code.equals("3B")) {
                    c = 11;
                    break;
                }
                break;
            case 1678:
                if (code.equals("4B")) {
                    c = '\f';
                    break;
                }
                break;
            case 1708:
                if (code.equals("5A")) {
                    c = 5;
                    break;
                }
                break;
            case 1709:
                if (code.equals("5B")) {
                    c = 6;
                    break;
                }
                break;
            case 1710:
                if (code.equals("5C")) {
                    c = 7;
                    break;
                }
                break;
            case 1739:
                if (code.equals("6A")) {
                    c = '\t';
                    break;
                }
                break;
            case 1740:
                if (code.equals("6B")) {
                    c = '\r';
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                name = "优秀";
                break;
            case 1:
                name = "称职";
                break;
            case DateUtil.SUB_MONTH:
                name = "基本称职";
                break;
            case 3:
                name = "不称职";
                break;
            case 4:
                name = "不定等次";
                break;
            case DateUtil.SUB_DAY:
                name = "新录用人员试用期年度考核不确定等次";
                break;
            case 6:
                name = "被立案调查尚未结案年度考核不确定等次";
                break;
            case 7:
                name = "受政纪处分期间年度考核不确定等次";
                break;
            case '\b':
                name = "不进行考核";
                break;
            case '\t':
                name = "病、事假累计超过考核年度半年不进行考核";
                break;
            case DateUtil.SUB_HOUR:
                name = "合格";
                break;
            case 11:
                name = "基本合格";
                break;
            case DateUtil.SUB_MINUTE:
                name = "不合格";
                break;
            case DateUtil.SUB_SECOND:
                name = "其他原因不进行考核";
                break;
            default:
                name = "其他";
                break;
        }
        return name;
    }

    private String getA0178(String code) {
        String name;
        char c = 65535;
        switch (code.hashCode()) {
            case 49:
                if (code.equals("1")) {
                    c = 0;
                    break;
                }
                break;
            case 53:
                if (code.equals("5")) {
                    c = 1;
                    break;
                }
                break;
            case 54:
                if (code.equals("6")) {
                    c = 2;
                    break;
                }
                break;
            case 55:
                if (code.equals("7")) {
                    c = 3;
                    break;
                }
                break;
            case 56:
                if (code.equals("8")) {
                    c = 4;
                    break;
                }
                break;
            case 57:
                if (code.equals("9")) {
                    c = 11;
                    break;
                }
                break;
            case 2063:
                if (code.equals("A0")) {
                    c = 6;
                    break;
                }
                break;
            case 2064:
                if (code.equals("A1")) {
                    c = 7;
                    break;
                }
                break;
            case 2067:
                if (code.equals("A4")) {
                    c = '\b';
                    break;
                }
                break;
            case 2068:
                if (code.equals("A5")) {
                    c = '\t';
                    break;
                }
                break;
            case 2069:
                if (code.equals("A6")) {
                    c = '\n';
                    break;
                }
                break;
            case 2099:
                if (code.equals("B5")) {
                    c = 5;
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                name = "公务员";
                break;
            case 1:
                name = "参照管理机关工作人员";
                break;
            case DateUtil.SUB_MONTH:
                name = "参照管理事业单位工作人员";
                break;
            case 3:
                name = "事业单位管理人员";
                break;
            case 4:
                name = "事业单位专业技术人员";
                break;
            case DateUtil.SUB_DAY:
                name = "在机关工作的事业编制人员";
                break;
            case 6:
                name = "机关工勤人员";
                break;
            case 7:
                name = "事业单位工勤人员";
                break;
            case '\b':
                name = "企业管理人员";
                break;
            case '\t':
                name = "企业专业技术人员";
                break;
            case DateUtil.SUB_HOUR:
                name = "企业工勤人员";
                break;
            case 11:
                name = "其他人员";
                break;
            default:
                name = "";
                break;
        }
        return name;
    }

    private String getA0179(String code) {
        String name;
        char c = 65535;
        switch (code.hashCode()) {
            case 49:
                if (code.equals("1")) {
                    c = 0;
                    break;
                }
                break;
            case 50:
                if (code.equals("2")) {
                    c = 16;
                    break;
                }
                break;
            case 51:
                if (code.equals("3")) {
                    c = 26;
                    break;
                }
                break;
            case 52:
                if (code.equals("4")) {
                    c = '\'';
                    break;
                }
                break;
            case 53:
                if (code.equals("5")) {
                    c = '4';
                    break;
                }
                break;
            case 54:
                if (code.equals("6")) {
                    c = '@';
                    break;
                }
                break;
            case 55:
                if (code.equals("7")) {
                    c = 'M';
                    break;
                }
                break;
            case 57:
                if (code.equals("9")) {
                    c = 138;
                    break;
                }
                break;
            case 67:
                if (code.equals("C")) {
                    c = 151;
                    break;
                }
                break;
            case 68:
                if (code.equals("D")) {
                    c = 167;
                    break;
                }
                break;
            case 69:
                if (code.equals("E")) {
                    c = 174;
                    break;
                }
                break;
            case 70:
                if (code.equals("F")) {
                    c = 177;
                    break;
                }
                break;
            case 71:
                if (code.equals("G")) {
                    c = 184;
                    break;
                }
                break;
            case 1584:
                if (code.equals("1A")) {
                    c = 1;
                    break;
                }
                break;
            case 1598:
                if (code.equals("20")) {
                    c = 17;
                    break;
                }
                break;
            case 1599:
                if (code.equals("21")) {
                    c = 18;
                    break;
                }
                break;
            case 1600:
                if (code.equals("22")) {
                    c = 19;
                    break;
                }
                break;
            case 1601:
                if (code.equals("23")) {
                    c = 20;
                    break;
                }
                break;
            case 1602:
                if (code.equals("24")) {
                    c = 21;
                    break;
                }
                break;
            case 1603:
                if (code.equals("25")) {
                    c = 22;
                    break;
                }
                break;
            case 1604:
                if (code.equals("26")) {
                    c = 23;
                    break;
                }
                break;
            case 1605:
                if (code.equals("27")) {
                    c = 24;
                    break;
                }
                break;
            case 1606:
                if (code.equals("28")) {
                    c = 25;
                    break;
                }
                break;
            case 1754:
                if (code.equals("71")) {
                    c = 'N';
                    break;
                }
                break;
            case 1755:
                if (code.equals("72")) {
                    c = '[';
                    break;
                }
                break;
            case 1756:
                if (code.equals("73")) {
                    c = 'j';
                    break;
                }
                break;
            case 1757:
                if (code.equals("74")) {
                    c = 'w';
                    break;
                }
                break;
            case 1758:
                if (code.equals("75")) {
                    c = 129;
                    break;
                }
                break;
            case 50548:
                if (code.equals("301")) {
                    c = 27;
                    break;
                }
                break;
            case 50549:
                if (code.equals("302")) {
                    c = 28;
                    break;
                }
                break;
            case 50550:
                if (code.equals("303")) {
                    c = 29;
                    break;
                }
                break;
            case 50551:
                if (code.equals("304")) {
                    c = 30;
                    break;
                }
                break;
            case 50552:
                if (code.equals("305")) {
                    c = 31;
                    break;
                }
                break;
            case 50553:
                if (code.equals("306")) {
                    c = ' ';
                    break;
                }
                break;
            case 50554:
                if (code.equals("307")) {
                    c = '!';
                    break;
                }
                break;
            case 50555:
                if (code.equals("308")) {
                    c = '\"';
                    break;
                }
                break;
            case 50556:
                if (code.equals("309")) {
                    c = '#';
                    break;
                }
                break;
            case 50578:
                if (code.equals("310")) {
                    c = '$';
                    break;
                }
                break;
            case 50579:
                if (code.equals("311")) {
                    c = '%';
                    break;
                }
                break;
            case 50580:
                if (code.equals("312")) {
                    c = '&';
                    break;
                }
                break;
            case 51509:
                if (code.equals("401")) {
                    c = '(';
                    break;
                }
                break;
            case 51510:
                if (code.equals("402")) {
                    c = ')';
                    break;
                }
                break;
            case 51511:
                if (code.equals("403")) {
                    c = '*';
                    break;
                }
                break;
            case 51512:
                if (code.equals("404")) {
                    c = '+';
                    break;
                }
                break;
            case 51513:
                if (code.equals("405")) {
                    c = ',';
                    break;
                }
                break;
            case 51514:
                if (code.equals("406")) {
                    c = '-';
                    break;
                }
                break;
            case 51515:
                if (code.equals("407")) {
                    c = '.';
                    break;
                }
                break;
            case 51516:
                if (code.equals("408")) {
                    c = '/';
                    break;
                }
                break;
            case 51517:
                if (code.equals("409")) {
                    c = '0';
                    break;
                }
                break;
            case 51539:
                if (code.equals("410")) {
                    c = '1';
                    break;
                }
                break;
            case 51540:
                if (code.equals("411")) {
                    c = '2';
                    break;
                }
                break;
            case 51541:
                if (code.equals("412")) {
                    c = '3';
                    break;
                }
                break;
            case 52470:
                if (code.equals("501")) {
                    c = '5';
                    break;
                }
                break;
            case 52471:
                if (code.equals("502")) {
                    c = '6';
                    break;
                }
                break;
            case 52472:
                if (code.equals("503")) {
                    c = '7';
                    break;
                }
                break;
            case 52473:
                if (code.equals("504")) {
                    c = '8';
                    break;
                }
                break;
            case 52474:
                if (code.equals("505")) {
                    c = '9';
                    break;
                }
                break;
            case 52475:
                if (code.equals("506")) {
                    c = ':';
                    break;
                }
                break;
            case 52476:
                if (code.equals("507")) {
                    c = ';';
                    break;
                }
                break;
            case 52477:
                if (code.equals("508")) {
                    c = '<';
                    break;
                }
                break;
            case 52478:
                if (code.equals("509")) {
                    c = '=';
                    break;
                }
                break;
            case 52500:
                if (code.equals("510")) {
                    c = '>';
                    break;
                }
                break;
            case 52501:
                if (code.equals("511")) {
                    c = '?';
                    break;
                }
                break;
            case 53431:
                if (code.equals("601")) {
                    c = 'A';
                    break;
                }
                break;
            case 53432:
                if (code.equals("602")) {
                    c = 'B';
                    break;
                }
                break;
            case 53433:
                if (code.equals("603")) {
                    c = 'C';
                    break;
                }
                break;
            case 53434:
                if (code.equals("604")) {
                    c = 'D';
                    break;
                }
                break;
            case 53435:
                if (code.equals("605")) {
                    c = 'E';
                    break;
                }
                break;
            case 53436:
                if (code.equals("606")) {
                    c = 'F';
                    break;
                }
                break;
            case 53437:
                if (code.equals("607")) {
                    c = 'G';
                    break;
                }
                break;
            case 53438:
                if (code.equals("608")) {
                    c = 'H';
                    break;
                }
                break;
            case 53439:
                if (code.equals("609")) {
                    c = 'I';
                    break;
                }
                break;
            case 53461:
                if (code.equals("610")) {
                    c = 'J';
                    break;
                }
                break;
            case 53462:
                if (code.equals("611")) {
                    c = 'K';
                    break;
                }
                break;
            case 53463:
                if (code.equals("612")) {
                    c = 'L';
                    break;
                }
                break;
            case 56314:
                if (code.equals("901")) {
                    c = 139;
                    break;
                }
                break;
            case 56315:
                if (code.equals("902")) {
                    c = 140;
                    break;
                }
                break;
            case 56316:
                if (code.equals("903")) {
                    c = 141;
                    break;
                }
                break;
            case 56317:
                if (code.equals("904")) {
                    c = 142;
                    break;
                }
                break;
            case 56318:
                if (code.equals("905")) {
                    c = 143;
                    break;
                }
                break;
            case 56319:
                if (code.equals("906")) {
                    c = 144;
                    break;
                }
                break;
            case 56320:
                if (code.equals("907")) {
                    c = 145;
                    break;
                }
                break;
            case 56321:
                if (code.equals("908")) {
                    c = 146;
                    break;
                }
                break;
            case 56322:
                if (code.equals("909")) {
                    c = 147;
                    break;
                }
                break;
            case 56344:
                if (code.equals("910")) {
                    c = 148;
                    break;
                }
                break;
            case 56345:
                if (code.equals("911")) {
                    c = 149;
                    break;
                }
                break;
            case 56346:
                if (code.equals("912")) {
                    c = 150;
                    break;
                }
                break;
            case 65924:
                if (code.equals("C01")) {
                    c = 152;
                    break;
                }
                break;
            case 65925:
                if (code.equals("C02")) {
                    c = 153;
                    break;
                }
                break;
            case 65926:
                if (code.equals("C03")) {
                    c = 154;
                    break;
                }
                break;
            case 65927:
                if (code.equals("C04")) {
                    c = 155;
                    break;
                }
                break;
            case 65928:
                if (code.equals("C05")) {
                    c = 156;
                    break;
                }
                break;
            case 65929:
                if (code.equals("C06")) {
                    c = 157;
                    break;
                }
                break;
            case 65930:
                if (code.equals("C07")) {
                    c = 158;
                    break;
                }
                break;
            case 65931:
                if (code.equals("C08")) {
                    c = 159;
                    break;
                }
                break;
            case 65932:
                if (code.equals("C09")) {
                    c = 160;
                    break;
                }
                break;
            case 65954:
                if (code.equals("C10")) {
                    c = 161;
                    break;
                }
                break;
            case 65955:
                if (code.equals("C11")) {
                    c = 162;
                    break;
                }
                break;
            case 65956:
                if (code.equals("C12")) {
                    c = 163;
                    break;
                }
                break;
            case 65957:
                if (code.equals("C13")) {
                    c = 164;
                    break;
                }
                break;
            case 66210:
                if (code.equals("C98")) {
                    c = 165;
                    break;
                }
                break;
            case 66211:
                if (code.equals("C99")) {
                    c = 166;
                    break;
                }
                break;
            case 66885:
                if (code.equals("D01")) {
                    c = 168;
                    break;
                }
                break;
            case 66886:
                if (code.equals("D02")) {
                    c = 169;
                    break;
                }
                break;
            case 66887:
                if (code.equals("D03")) {
                    c = 170;
                    break;
                }
                break;
            case 66888:
                if (code.equals("D04")) {
                    c = 171;
                    break;
                }
                break;
            case 66889:
                if (code.equals("D05")) {
                    c = 172;
                    break;
                }
                break;
            case 66893:
                if (code.equals("D09")) {
                    c = 173;
                    break;
                }
                break;
            case 67846:
                if (code.equals("E01")) {
                    c = 175;
                    break;
                }
                break;
            case 67854:
                if (code.equals("E09")) {
                    c = 176;
                    break;
                }
                break;
            case 68807:
                if (code.equals("F01")) {
                    c = 178;
                    break;
                }
                break;
            case 68808:
                if (code.equals("F02")) {
                    c = 179;
                    break;
                }
                break;
            case 68809:
                if (code.equals("F03")) {
                    c = 180;
                    break;
                }
                break;
            case 68810:
                if (code.equals("F04")) {
                    c = 181;
                    break;
                }
                break;
            case 68811:
                if (code.equals("F05")) {
                    c = 182;
                    break;
                }
                break;
            case 68815:
                if (code.equals("F09")) {
                    c = 183;
                    break;
                }
                break;
            case 69768:
                if (code.equals("G01")) {
                    c = 185;
                    break;
                }
                break;
            case 69776:
                if (code.equals("G09")) {
                    c = 186;
                    break;
                }
                break;
            case 1523761:
                if (code.equals("1A01")) {
                    c = 2;
                    break;
                }
                break;
            case 1523762:
                if (code.equals("1A02")) {
                    c = 3;
                    break;
                }
                break;
            case 1523792:
                if (code.equals("1A11")) {
                    c = 4;
                    break;
                }
                break;
            case 1523793:
                if (code.equals("1A12")) {
                    c = 5;
                    break;
                }
                break;
            case 1523823:
                if (code.equals("1A21")) {
                    c = 6;
                    break;
                }
                break;
            case 1523824:
                if (code.equals("1A22")) {
                    c = 7;
                    break;
                }
                break;
            case 1523854:
                if (code.equals("1A31")) {
                    c = '\b';
                    break;
                }
                break;
            case 1523855:
                if (code.equals("1A32")) {
                    c = '\t';
                    break;
                }
                break;
            case 1523885:
                if (code.equals("1A41")) {
                    c = '\n';
                    break;
                }
                break;
            case 1523886:
                if (code.equals("1A42")) {
                    c = 11;
                    break;
                }
                break;
            case 1523915:
                if (code.equals("1A50")) {
                    c = '\f';
                    break;
                }
                break;
            case 1523946:
                if (code.equals("1A60")) {
                    c = '\r';
                    break;
                }
                break;
            case 1524047:
                if (code.equals("1A98")) {
                    c = 14;
                    break;
                }
                break;
            case 1524048:
                if (code.equals("1A99")) {
                    c = 15;
                    break;
                }
                break;
            case 1687131:
                if (code.equals("7101")) {
                    c = 'O';
                    break;
                }
                break;
            case 1687132:
                if (code.equals("7102")) {
                    c = 'P';
                    break;
                }
                break;
            case 1687133:
                if (code.equals("7103")) {
                    c = 'Q';
                    break;
                }
                break;
            case 1687134:
                if (code.equals("7104")) {
                    c = 'R';
                    break;
                }
                break;
            case 1687135:
                if (code.equals("7105")) {
                    c = 'S';
                    break;
                }
                break;
            case 1687136:
                if (code.equals("7106")) {
                    c = 'T';
                    break;
                }
                break;
            case 1687137:
                if (code.equals("7107")) {
                    c = 'U';
                    break;
                }
                break;
            case 1687138:
                if (code.equals("7108")) {
                    c = 'V';
                    break;
                }
                break;
            case 1687139:
                if (code.equals("7109")) {
                    c = 'W';
                    break;
                }
                break;
            case 1687161:
                if (code.equals("7110")) {
                    c = 'X';
                    break;
                }
                break;
            case 1687169:
                if (code.equals("7118")) {
                    c = 'Y';
                    break;
                }
                break;
            case 1687170:
                if (code.equals("7119")) {
                    c = 'Z';
                    break;
                }
                break;
            case 1688092:
                if (code.equals("7201")) {
                    c = '\\';
                    break;
                }
                break;
            case 1688093:
                if (code.equals("7202")) {
                    c = ']';
                    break;
                }
                break;
            case 1688094:
                if (code.equals("7203")) {
                    c = '^';
                    break;
                }
                break;
            case 1688095:
                if (code.equals("7204")) {
                    c = '_';
                    break;
                }
                break;
            case 1688096:
                if (code.equals("7205")) {
                    c = '`';
                    break;
                }
                break;
            case 1688097:
                if (code.equals("7206")) {
                    c = 'a';
                    break;
                }
                break;
            case 1688098:
                if (code.equals("7207")) {
                    c = 'b';
                    break;
                }
                break;
            case 1688099:
                if (code.equals("7208")) {
                    c = 'c';
                    break;
                }
                break;
            case 1688100:
                if (code.equals("7209")) {
                    c = 'd';
                    break;
                }
                break;
            case 1688122:
                if (code.equals("7210")) {
                    c = 'e';
                    break;
                }
                break;
            case 1688123:
                if (code.equals("7211")) {
                    c = 'f';
                    break;
                }
                break;
            case 1688124:
                if (code.equals("7212")) {
                    c = 'g';
                    break;
                }
                break;
            case 1688130:
                if (code.equals("7218")) {
                    c = 'h';
                    break;
                }
                break;
            case 1688131:
                if (code.equals("7219")) {
                    c = 'i';
                    break;
                }
                break;
            case 1689053:
                if (code.equals("7301")) {
                    c = 'k';
                    break;
                }
                break;
            case 1689054:
                if (code.equals("7302")) {
                    c = 'l';
                    break;
                }
                break;
            case 1689055:
                if (code.equals("7303")) {
                    c = 'm';
                    break;
                }
                break;
            case 1689056:
                if (code.equals("7304")) {
                    c = 'n';
                    break;
                }
                break;
            case 1689057:
                if (code.equals("7305")) {
                    c = 'o';
                    break;
                }
                break;
            case 1689058:
                if (code.equals("7306")) {
                    c = 'p';
                    break;
                }
                break;
            case 1689059:
                if (code.equals("7307")) {
                    c = 'q';
                    break;
                }
                break;
            case 1689060:
                if (code.equals("7308")) {
                    c = 'r';
                    break;
                }
                break;
            case 1689061:
                if (code.equals("7309")) {
                    c = 's';
                    break;
                }
                break;
            case 1689083:
                if (code.equals("7310")) {
                    c = 't';
                    break;
                }
                break;
            case 1689091:
                if (code.equals("7318")) {
                    c = 'u';
                    break;
                }
                break;
            case 1689092:
                if (code.equals("7319")) {
                    c = 'v';
                    break;
                }
                break;
            case 1690014:
                if (code.equals("7401")) {
                    c = 'x';
                    break;
                }
                break;
            case 1690015:
                if (code.equals("7402")) {
                    c = 'y';
                    break;
                }
                break;
            case 1690016:
                if (code.equals("7403")) {
                    c = 'z';
                    break;
                }
                break;
            case 1690017:
                if (code.equals("7404")) {
                    c = '{';
                    break;
                }
                break;
            case 1690018:
                if (code.equals("7405")) {
                    c = '|';
                    break;
                }
                break;
            case 1690019:
                if (code.equals("7406")) {
                    c = '}';
                    break;
                }
                break;
            case 1690020:
                if (code.equals("7407")) {
                    c = '~';
                    break;
                }
                break;
            case 1690052:
                if (code.equals("7418")) {
                    c = 127;
                    break;
                }
                break;
            case 1690053:
                if (code.equals("7419")) {
                    c = 128;
                    break;
                }
                break;
            case 1690975:
                if (code.equals("7501")) {
                    c = 130;
                    break;
                }
                break;
            case 1690976:
                if (code.equals("7502")) {
                    c = 131;
                    break;
                }
                break;
            case 1690977:
                if (code.equals("7503")) {
                    c = 132;
                    break;
                }
                break;
            case 1690978:
                if (code.equals("7504")) {
                    c = 133;
                    break;
                }
                break;
            case 1690979:
                if (code.equals("7505")) {
                    c = 134;
                    break;
                }
                break;
            case 1690980:
                if (code.equals("7506")) {
                    c = 135;
                    break;
                }
                break;
            case 1691013:
                if (code.equals("7518")) {
                    c = 136;
                    break;
                }
                break;
            case 1691014:
                if (code.equals("7519")) {
                    c = 137;
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                name = "公务员（参照管理人员）";
                break;
            case 1:
                name = "综合管理类";
                break;
            case DateUtil.SUB_MONTH:
                name = "国家级正职";
                break;
            case 3:
                name = "国家级副职";
                break;
            case 4:
                name = "省部级正职";
                break;
            case DateUtil.SUB_DAY:
                name = "省部级副职";
                break;
            case 6:
                name = "厅局级正职";
                break;
            case 7:
                name = "厅局级副职";
                break;
            case '\b':
                name = "县处级正职";
                break;
            case '\t':
                name = "县处级副职";
                break;
            case DateUtil.SUB_HOUR:
                name = "乡科级正职";
                break;
            case 11:
                name = "乡科级副职";
                break;
            case DateUtil.SUB_MINUTE:
                name = "科员";
                break;
            case DateUtil.SUB_SECOND:
                name = "办事员";
                break;
            case 14:
                name = "试用期人员（公务员）";
                break;
            case 15:
                name = "其他（公务员）";
                break;
            case 16 /* 16 */:
                name = "人民警察警员职务序列";
                break;
            case 17:
                name = "一级警长（人民警察警员职务序列）";
                break;
            case 18:
                name = "二级警长（人民警察警员职务序列）";
                break;
            case 19:
                name = "三级警长（人民警察警员职务序列）";
                break;
            case 20:
                name = "四级警长（人民警察警员职务序列）";
                break;
            case 21:
                name = "一级警员（人民警察警员职务序列）";
                break;
            case 22:
                name = "二级警员（人民警察警员职务序列）";
                break;
            case 23:
                name = "三级警员（人民警察警员职务序列）";
                break;
            case 24:
                name = "试用期人员（人民警察警员职务序列）";
                break;
            case 25:
                name = "其他（人民警察警员职务序列）";
                break;
            case 26:
                name = "法官等级";
                break;
            case 27:
                name = "首席大法官";
                break;
            case 28:
                name = "一级大法官";
                break;
            case 29:
                name = "二级大法官";
                break;
            case 30:
                name = "一级高级法官";
                break;
            case 31:
                name = "二级高级法官";
                break;
            case ' ':
                name = "三级高级法官";
                break;
            case '!':
                name = "四级高级法官";
                break;
            case '\"':
                name = "一级法官";
                break;
            case '#':
                name = "二级法官";
                break;
            case '$':
                name = "三级法官";
                break;
            case '%':
                name = "四级法官";
                break;
            case '&':
                name = "五级法官";
                break;
            case '\'':
                name = "检察官等级";
                break;
            case '(':
                name = "首席大检察官";
                break;
            case ')':
                name = "一级大检察官";
                break;
            case '*':
                name = "二级大检察官";
                break;
            case '+':
                name = "一级高级检察官";
                break;
            case ',':
                name = "二级高级检察官";
                break;
            case '-':
                name = "三级高级检察官";
                break;
            case '.':
                name = "四级高级检察官";
                break;
            case '/':
                name = "一级检察官";
                break;
            case '0':
                name = "二级检察官";
                break;
            case '1':
                name = "三级检察官";
                break;
            case '2':
                name = "四级检察官";
                break;
            case '3':
                name = "五级检察官";
                break;
            case '4':
                name = "警务技术等级";
                break;
            case '5':
                name = "警务技术一级总监";
                break;
            case '6':
                name = "警务技术二级总监";
                break;
            case '7':
                name = "警务技术一级主任";
                break;
            case '8':
                name = "警务技术二级主任";
                break;
            case '9':
                name = "警务技术三级主任";
                break;
            case ':':
                name = "警务技术四级主任";
                break;
            case ';':
                name = "警务技术一级主管";
                break;
            case '<':
                name = "警务技术二级主管";
                break;
            case '=':
                name = "警务技术三级主管";
                break;
            case '>':
                name = "警务技术四级主管";
                break;
            case '?':
                name = "警务技术员";
                break;
            case '@':
                name = "执法勤务警员职务等级";
                break;
            case 'A':
                name = "一级警务专员（执法勤务警员职务等级）";
                break;
            case 'B':
                name = "二级警务专员（执法勤务警员职务等级）";
                break;
            case 'C':
                name = "一级高级警长（执法勤务警员职务等级）";
                break;
            case 'D':
                name = "二级高级警长（执法勤务警员职务等级）";
                break;
            case 'E':
                name = "三级高级警长（执法勤务警员职务等级）";
                break;
            case 'F':
                name = "四级高级警长（执法勤务警员职务等级）";
                break;
            case 'G':
                name = "一级警长（执法勤务警员职务等级）";
                break;
            case 'H':
                name = "二级警长（执法勤务警员职务等级）";
                break;
            case 'I':
                name = "三级警长（执法勤务警员职务等级）";
                break;
            case 'J':
                name = "四级警长（执法勤务警员职务等级）";
                break;
            case 'K':
                name = "一级警员（执法勤务警员职务等级）";
                break;
            case 'L':
                name = "二级警员（执法勤务警员职务等级）";
                break;
            case 'M':
                name = "深圳市行政执法类公务员";
                break;
            case 'N':
                name = "深圳市执法员";
                break;
            case 'O':
                name = "高级执法员";
                break;
            case 'P':
                name = "一级执法员";
                break;
            case 'Q':
                name = "二级执法员";
                break;
            case 'R':
                name = "三级执法员";
                break;
            case 'S':
                name = "四级执法员";
                break;
            case 'T':
                name = "五级执法员";
                break;
            case 'U':
                name = "六级执法员";
                break;
            case 'V':
                name = "七级执法员";
                break;
            case 'W':
                name = "助理执法员";
                break;
            case 'X':
                name = "见习执法员";
                break;
            case 'Y':
                name = "试用期人员（深圳市执法员）";
                break;
            case 'Z':
                name = "其他（深圳市执法员）";
                break;
            case '[':
                name = "深圳市警员";
                break;
            case '\\':
                name = "一级高级警长（深圳市警员）";
                break;
            case ']':
                name = "二级高级警长（深圳市警员）";
                break;
            case '^':
                name = "一级警长（深圳市警员）";
                break;
            case '_':
                name = "二级警长（深圳市警员）";
                break;
            case '`':
                name = "三级警长（深圳市警员）";
                break;
            case 'a':
                name = "四级警长（深圳市警员）";
                break;
            case 'b':
                name = "一级警员（深圳市警员）";
                break;
            case 'c':
                name = "二级警员（深圳市警员）";
                break;
            case 'd':
                name = "三级警员（深圳市警员）";
                break;
            case 'e':
                name = "四级警员（深圳市警员）";
                break;
            case 'f':
                name = "初级警员（深圳市警员）";
                break;
            case 'g':
                name = "见习警员（深圳市警员）";
                break;
            case 'h':
                name = "试用期人员（深圳市警员）";
                break;
            case 'i':
                name = "其他（深圳市警员）";
                break;
            case 'j':
                name = "深圳警务技术职务";
                break;
            case 'k':
                name = "一级技术警察";
                break;
            case 'l':
                name = "二级技术警察";
                break;
            case 'm':
                name = "三级技术警察";
                break;
            case 'n':
                name = "四级技术警察";
                break;
            case 'o':
                name = "五级技术警察";
                break;
            case 'p':
                name = "六级技术警察";
                break;
            case 'q':
                name = "七级技术警察";
                break;
            case 'r':
                name = "八级技术警察";
                break;
            case 's':
                name = "九级技术警察";
                break;
            case 't':
                name = "十级技术警察";
                break;
            case 'u':
                name = "试用期人员（深圳警务技术职务）";
                break;
            case 'v':
                name = "其他（深圳警务技术职务）";
                break;
            case 'w':
                name = "深圳市气象预报员";
                break;
            case 'x':
                name = "气象预报总主任";
                break;
            case 'y':
                name = "气象预报高级主任";
                break;
            case 'z':
                name = "气象预报主任";
                break;
            case '{':
                name = "气象预报一级主管";
                break;
            case '|':
                name = "气象预报二级主管";
                break;
            case '}':
                name = "气象预报三级主管";
                break;
            case '~':
                name = "气象预报助理";
                break;
            case 127:
                name = "试用期人员（深圳市气象预报员）";
                break;
            case 128:
                name = "其他（深圳市气象预报员）";
                break;
            case 129:
                name = "深圳市气象信息员";
                break;
            case 130:
                name = "气象信息高级主任";
                break;
            case 131:
                name = "气象信息主任";
                break;
            case 132:
                name = "气象信息一级主管";
                break;
            case 133:
                name = "气象信息二级主管";
                break;
            case 134:
                name = "气象信息三级主管";
                break;
            case 135:
                name = "气象信息助理";
                break;
            case 136:
                name = "试用期人员（深圳市气象信息员）";
                break;
            case 137:
                name = "其他（深圳市气象信息员）";
                break;
            case 138:
                name = "事业单位管理等级";
                break;
            case 139:
                name = "一级职员";
                break;
            case 140:
                name = "二级职员";
                break;
            case 141:
                name = "三级职员";
                break;
            case 142:
                name = "四级职员";
                break;
            case 143:
                name = "五级职员";
                break;
            case 144:
                name = "六级职员";
                break;
            case 145:
                name = "七级职员";
                break;
            case 146:
                name = "八级职员";
                break;
            case 147:
                name = "九级职员";
                break;
            case 148:
                name = "十级职员";
                break;
            case 149:
                name = "试用期人员（事业单位管理等级）";
                break;
            case 150:
                name = "其他（事业单位管理等级）";
                break;
            case 151:
                name = "事业单位专业技术岗位";
                break;
            case 152:
                name = "技术一级（正高级）";
                break;
            case 153:
                name = "技术二级（正高级）";
                break;
            case 154:
                name = "技术三级（正高级）";
                break;
            case 155:
                name = "技术四级（正高级）";
                break;
            case 156:
                name = "技术五级（副高级）";
                break;
            case 157:
                name = "技术六级（副高级）";
                break;
            case 158:
                name = "技术七级（副高级）";
                break;
            case 159:
                name = "技术八级（中级）";
                break;
            case 160:
                name = "技术九级（中级）";
                break;
            case 161:
                name = "技术十级（中级）";
                break;
            case 162:
                name = "技术十一级（助理级）";
                break;
            case 163:
                name = "技术十二级（助理级）";
                break;
            case 164:
                name = "技术十三级（员级）";
                break;
            case 165:
                name = "试用期人员（事业单位专业技术岗位）";
                break;
            case 166:
                name = "其他（事业单位专业技术岗位）";
                break;
            case 167:
                name = "机关技术工人岗位";
                break;
            case 168:
                name = "高级技师";
                break;
            case 169:
                name = "技师";
                break;
            case 170:
                name = "高级技术工人";
                break;
            case 171:
                name = "中级技术工人";
                break;
            case 172:
                name = "初级技术工人";
                break;
            case 173:
                name = "学徒工及其他";
                break;
            case 174:
                name = "机关普通工人岗位";
                break;
            case 175:
                name = "机关普通工人";
                break;
            case 176:
                name = "其他（机关普通工人岗位）";
                break;
            case 177:
                name = "事业单位技术工人岗位";
                break;
            case 178:
                name = "技术工一级（高级技师）";
                break;
            case 179:
                name = "技术工二级（技师）";
                break;
            case 180:
                name = "技术工三级（高级工）";
                break;
            case 181:
                name = "技术工四级（中级工）";
                break;
            case 182:
                name = "技术工五级（初级工）";
                break;
            case 183:
                name = "学徒工及其他";
                break;
            case 184:
                name = "事业单位普通工人岗位";
                break;
            case 185:
                name = "事业普通工人";
                break;
            case 186:
                name = "其他其他（事业单位普通工人岗位）";
                break;
            default:
                name = "";
                break;
        }
        return name;
    }

    private String getA0182(String code) {
        String name;
        char c = 65535;
        switch (code.hashCode()) {
            case 49:
                if (code.equals("1")) {
                    c = 0;
                    break;
                }
                break;
            case 50:
                if (code.equals("2")) {
                    c = 1;
                    break;
                }
                break;
            case 51:
                if (code.equals("3")) {
                    c = 2;
                    break;
                }
                break;
            case 52:
                if (code.equals("4")) {
                    c = 3;
                    break;
                }
                break;
            case 57:
                if (code.equals("9")) {
                    c = 4;
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                name = "行政编制";
                break;
            case 1:
                name = "事业编制（参公）";
                break;
            case DateUtil.SUB_MONTH:
                name = "事业编制（其他）";
                break;
            case 3:
                name = "工勤编制";
                break;
            case 4:
                name = "其他编制";
                break;
            default:
                name = "";
                break;
        }
        return name;
    }

    private String getA0198(String code) {
        String name;
        char c = 65535;
        switch (code.hashCode()) {
            case 49:
                if (code.equals("1")) {
                    c = 0;
                    break;
                }
                break;
            case 50:
                if (code.equals("2")) {
                    c = '\r';
                    break;
                }
                break;
            case 51:
                if (code.equals("3")) {
                    c = 19;
                    break;
                }
                break;
            case 52:
                if (code.equals("4")) {
                    c = 31;
                    break;
                }
                break;
            case 1568:
                if (code.equals("11")) {
                    c = 1;
                    break;
                }
                break;
            case 1569:
                if (code.equals("12")) {
                    c = 2;
                    break;
                }
                break;
            case 1570:
                if (code.equals("13")) {
                    c = 3;
                    break;
                }
                break;
            case 1571:
                if (code.equals("14")) {
                    c = 4;
                    break;
                }
                break;
            case 1572:
                if (code.equals("15")) {
                    c = 5;
                    break;
                }
                break;
            case 1573:
                if (code.equals("16")) {
                    c = 6;
                    break;
                }
                break;
            case 1574:
                if (code.equals("17")) {
                    c = 7;
                    break;
                }
                break;
            case 1575:
                if (code.equals("18")) {
                    c = '\b';
                    break;
                }
                break;
            case 1576:
                if (code.equals("19")) {
                    c = '\t';
                    break;
                }
                break;
            case 1584:
                if (code.equals("1A")) {
                    c = '\n';
                    break;
                }
                break;
            case 1585:
                if (code.equals("1B")) {
                    c = 11;
                    break;
                }
                break;
            case 1586:
                if (code.equals("1C")) {
                    c = '\f';
                    break;
                }
                break;
            case 1599:
                if (code.equals("21")) {
                    c = 14;
                    break;
                }
                break;
            case 1600:
                if (code.equals("22")) {
                    c = 15;
                    break;
                }
                break;
            case 1601:
                if (code.equals("23")) {
                    c = 16;
                    break;
                }
                break;
            case 1602:
                if (code.equals("24")) {
                    c = 17;
                    break;
                }
                break;
            case 1603:
                if (code.equals("25")) {
                    c = 18;
                    break;
                }
                break;
            case 1630:
                if (code.equals("31")) {
                    c = 20;
                    break;
                }
                break;
            case 1631:
                if (code.equals("32")) {
                    c = 21;
                    break;
                }
                break;
            case 1632:
                if (code.equals("33")) {
                    c = 22;
                    break;
                }
                break;
            case 1633:
                if (code.equals("34")) {
                    c = 23;
                    break;
                }
                break;
            case 1634:
                if (code.equals("35")) {
                    c = 24;
                    break;
                }
                break;
            case 1635:
                if (code.equals("36")) {
                    c = 25;
                    break;
                }
                break;
            case 1636:
                if (code.equals("37")) {
                    c = 26;
                    break;
                }
                break;
            case 1637:
                if (code.equals("38")) {
                    c = 27;
                    break;
                }
                break;
            case 1638:
                if (code.equals("39")) {
                    c = 28;
                    break;
                }
                break;
            case 1646:
                if (code.equals("3A")) {
                    c = 29;
                    break;
                }
                break;
            case 1647:
                if (code.equals("3B")) {
                    c = 30;
                    break;
                }
                break;
            case 1662:
                if (code.equals("42")) {
                    c = ' ';
                    break;
                }
                break;
            case 1663:
                if (code.equals("43")) {
                    c = '!';
                    break;
                }
                break;
            case 1664:
                if (code.equals("44")) {
                    c = '\"';
                    break;
                }
                break;
            case 1665:
                if (code.equals("45")) {
                    c = '#';
                    break;
                }
                break;
            case 1666:
                if (code.equals("46")) {
                    c = '$';
                    break;
                }
                break;
            case 1667:
                if (code.equals("47")) {
                    c = '%';
                    break;
                }
                break;
            case 1668:
                if (code.equals("48")) {
                    c = '&';
                    break;
                }
                break;
            case 1669:
                if (code.equals("49")) {
                    c = '\'';
                    break;
                }
                break;
            case 1677:
                if (code.equals("4A")) {
                    c = '(';
                    break;
                }
                break;
            case 1678:
                if (code.equals("4B")) {
                    c = ')';
                    break;
                }
                break;
            case 1679:
                if (code.equals("4C")) {
                    c = '*';
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                name = "综合管理类职级";
                break;
            case 1:
                name = "一级巡视员";
                break;
            case DateUtil.SUB_MONTH:
                name = "二级巡视员";
                break;
            case 3:
                name = "一级调研员";
                break;
            case 4:
                name = "二级调研员";
                break;
            case DateUtil.SUB_DAY:
                name = "三级调研员";
                break;
            case 6:
                name = "四级调研员";
                break;
            case 7:
                name = "一级主任科员";
                break;
            case '\b':
                name = "二级主任科员";
                break;
            case '\t':
                name = "三级主任科员";
                break;
            case DateUtil.SUB_HOUR:
                name = "四级主任科员";
                break;
            case 11:
                name = "一级科员";
                break;
            case DateUtil.SUB_MINUTE:
                name = "二级科员";
                break;
            case DateUtil.SUB_SECOND:
                name = "县以下职级";
                break;
            case 14:
                name = "正处级";
                break;
            case 15:
                name = "副处级";
                break;
            case 16 /* 16 */:
                name = "正科级";
                break;
            case 17:
                name = "副科级";
                break;
            case 18:
                name = "科员级";
                break;
            case 19:
                name = "专业技术类职级";
                break;
            case 20:
                name = "一级总监";
                break;
            case 21:
                name = "二级总监";
                break;
            case 22:
                name = "一级高级主管";
                break;
            case 23:
                name = "二级高级主管";
                break;
            case 24:
                name = "三级高级主管";
                break;
            case 25:
                name = "四级高级主管";
                break;
            case 26:
                name = "一级主管";
                break;
            case 27:
                name = "二级主管";
                break;
            case 28:
                name = "三级主管";
                break;
            case 29:
                name = "四级主管";
                break;
            case 30:
                name = "专业技术员";
                break;
            case 31:
                name = "行政执法类职级";
                break;
            case ' ':
                name = "督办";
                break;
            case '!':
                name = "一级高级主办";
                break;
            case '\"':
                name = "二级高级主办";
                break;
            case '#':
                name = "三级高级主办";
                break;
            case '$':
                name = "四级高级主办";
                break;
            case '%':
                name = "一级主办";
                break;
            case '&':
                name = "二级主办";
                break;
            case '\'':
                name = "三级主办";
                break;
            case '(':
                name = "四级主办";
                break;
            case ')':
                name = "一级行政执法员";
                break;
            case '*':
                name = "二级行政执法员";
                break;
            default:
                name = "";
                break;
        }
        return name;
    }

    private String getB0120(String code) {
        String name;
        char c = 65535;
        switch (code.hashCode()) {
            case 48626:
                if (code.equals("101")) {
                    c = 0;
                    break;
                }
                break;
            case 48627:
                if (code.equals("102")) {
                    c = 1;
                    break;
                }
                break;
            case 48630:
                if (code.equals("105")) {
                    c = 6;
                    break;
                }
                break;
            case 48631:
                if (code.equals("106")) {
                    c = 7;
                    break;
                }
                break;
            case 48632:
                if (code.equals("107")) {
                    c = '\b';
                    break;
                }
                break;
            case 48633:
                if (code.equals("108")) {
                    c = '\t';
                    break;
                }
                break;
            case 48634:
                if (code.equals("109")) {
                    c = '\n';
                    break;
                }
                break;
            case 48656:
                if (code.equals("110")) {
                    c = 11;
                    break;
                }
                break;
            case 48657:
                if (code.equals("111")) {
                    c = '\f';
                    break;
                }
                break;
            case 56601:
                if (code.equals("999")) {
                    c = '\r';
                    break;
                }
                break;
            case 1507533:
                if (code.equals("103A")) {
                    c = 2;
                    break;
                }
                break;
            case 1507534:
                if (code.equals("103B")) {
                    c = 3;
                    break;
                }
                break;
            case 1507564:
                if (code.equals("104A")) {
                    c = 4;
                    break;
                }
                break;
            case 1507565:
                if (code.equals("104B")) {
                    c = 5;
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                name = "中央、国家级（正）";
                break;
            case 1:
                name = "中央、国家级（副）";
                break;
            case DateUtil.SUB_MONTH:
                name = "部级";
                break;
            case 3:
                name = "副部级";
                break;
            case 4:
                name = "省级";
                break;
            case DateUtil.SUB_DAY:
                name = "副省级";
                break;
            case 6:
                name = "地、厅、司、局级";
                break;
            case 7:
                name = "副地、副厅、副司、副局级";
                break;
            case '\b':
                name = "县、处级";
                break;
            case '\t':
                name = "副县、副处级";
                break;
            case DateUtil.SUB_HOUR:
                name = "乡、科级";
                break;
            case 11:
                name = "副乡、副科级";
                break;
            case DateUtil.SUB_MINUTE:
                name = "股级";
                break;
            case DateUtil.SUB_SECOND:
                name = "其他";
                break;
            default:
                name = "";
                break;
        }
        return name;
    }

    private String getB0118(String code) {
        String name = "";
        for (int i = 0; i < this.dicList.size(); i++) {
            if (code.equals(this.dicList.get(i).getCode())) {
                name = this.dicList.get(i).getName();
            }
        }
        return name;
    }

    private String getB0122(String code) {
        String name;
        char c = 65535;
        switch (code.hashCode()) {
            case 49:
                if (code.equals("1")) {
                    c = 0;
                    break;
                }
                break;
            case 50:
                if (code.equals("2")) {
                    c = '\b';
                    break;
                }
                break;
            case 51:
                if (code.equals("3")) {
                    c = '\t';
                    break;
                }
                break;
            case 52:
                if (code.equals("4")) {
                    c = 'N';
                    break;
                }
                break;
            case 53:
                if (code.equals("5")) {
                    c = 'Z';
                    break;
                }
                break;
            case 54:
                if (code.equals("6")) {
                    c = 'p';
                    break;
                }
                break;
            case 55:
                if (code.equals("7")) {
                    c = 'x';
                    break;
                }
                break;
            case 70:
                if (code.equals("F")) {
                    c = 136;
                    break;
                }
                break;
            case 1630:
                if (code.equals("31")) {
                    c = '\n';
                    break;
                }
                break;
            case 1631:
                if (code.equals("32")) {
                    c = 11;
                    break;
                }
                break;
            case 1632:
                if (code.equals("33")) {
                    c = 17;
                    break;
                }
                break;
            case 1633:
                if (code.equals("34")) {
                    c = 18;
                    break;
                }
                break;
            case 1634:
                if (code.equals("35")) {
                    c = 'B';
                    break;
                }
                break;
            case 1635:
                if (code.equals("36")) {
                    c = 'C';
                    break;
                }
                break;
            case 1636:
                if (code.equals("37")) {
                    c = 'D';
                    break;
                }
                break;
            case 1637:
                if (code.equals("38")) {
                    c = 'E';
                    break;
                }
                break;
            case 1638:
                if (code.equals("39")) {
                    c = 'H';
                    break;
                }
                break;
            case 1651:
                if (code.equals("3F")) {
                    c = 'M';
                    break;
                }
                break;
            case 1661:
                if (code.equals("41")) {
                    c = 'O';
                    break;
                }
                break;
            case 1662:
                if (code.equals("42")) {
                    c = 'T';
                    break;
                }
                break;
            case 1692:
                if (code.equals("51")) {
                    c = '[';
                    break;
                }
                break;
            case 1693:
                if (code.equals("52")) {
                    c = 'd';
                    break;
                }
                break;
            case 1694:
                if (code.equals("53")) {
                    c = 'j';
                    break;
                }
                break;
            case 1723:
                if (code.equals("61")) {
                    c = 'q';
                    break;
                }
                break;
            case 1724:
                if (code.equals("62")) {
                    c = 'w';
                    break;
                }
                break;
            case 51540:
                if (code.equals("411")) {
                    c = 'P';
                    break;
                }
                break;
            case 51541:
                if (code.equals("412")) {
                    c = 'Q';
                    break;
                }
                break;
            case 51542:
                if (code.equals("413")) {
                    c = 'R';
                    break;
                }
                break;
            case 51548:
                if (code.equals("419")) {
                    c = 'S';
                    break;
                }
                break;
            case 51571:
                if (code.equals("421")) {
                    c = 'U';
                    break;
                }
                break;
            case 51572:
                if (code.equals("422")) {
                    c = 'V';
                    break;
                }
                break;
            case 51573:
                if (code.equals("423")) {
                    c = 'W';
                    break;
                }
                break;
            case 51574:
                if (code.equals("424")) {
                    c = 'X';
                    break;
                }
                break;
            case 51575:
                if (code.equals("425")) {
                    c = 'Y';
                    break;
                }
                break;
            case 52501:
                if (code.equals("511")) {
                    c = '\\';
                    break;
                }
                break;
            case 52502:
                if (code.equals("512")) {
                    c = ']';
                    break;
                }
                break;
            case 52503:
                if (code.equals("513")) {
                    c = '^';
                    break;
                }
                break;
            case 52504:
                if (code.equals("514")) {
                    c = '_';
                    break;
                }
                break;
            case 52505:
                if (code.equals("515")) {
                    c = '`';
                    break;
                }
                break;
            case 52506:
                if (code.equals("516")) {
                    c = 'a';
                    break;
                }
                break;
            case 52507:
                if (code.equals("517")) {
                    c = 'b';
                    break;
                }
                break;
            case 52509:
                if (code.equals("519")) {
                    c = 'c';
                    break;
                }
                break;
            case 52532:
                if (code.equals("521")) {
                    c = 'e';
                    break;
                }
                break;
            case 52533:
                if (code.equals("522")) {
                    c = 'f';
                    break;
                }
                break;
            case 52534:
                if (code.equals("523")) {
                    c = 'g';
                    break;
                }
                break;
            case 52535:
                if (code.equals("524")) {
                    c = 'h';
                    break;
                }
                break;
            case 52536:
                if (code.equals("525")) {
                    c = 'i';
                    break;
                }
                break;
            case 52563:
                if (code.equals("531")) {
                    c = 'k';
                    break;
                }
                break;
            case 52564:
                if (code.equals("532")) {
                    c = 'l';
                    break;
                }
                break;
            case 52565:
                if (code.equals("533")) {
                    c = 'm';
                    break;
                }
                break;
            case 52566:
                if (code.equals("534")) {
                    c = 'n';
                    break;
                }
                break;
            case 52567:
                if (code.equals("535")) {
                    c = 'o';
                    break;
                }
                break;
            case 1507424:
                if (code.equals("1001")) {
                    c = 1;
                    break;
                }
                break;
            case 1507425:
                if (code.equals("1002")) {
                    c = 2;
                    break;
                }
                break;
            case 1507426:
                if (code.equals("1003")) {
                    c = 3;
                    break;
                }
                break;
            case 1507427:
                if (code.equals("1004")) {
                    c = 4;
                    break;
                }
                break;
            case 1507428:
                if (code.equals("1005")) {
                    c = 5;
                    break;
                }
                break;
            case 1507429:
                if (code.equals("1006")) {
                    c = 6;
                    break;
                }
                break;
            case 1507430:
                if (code.equals("1007")) {
                    c = 7;
                    break;
                }
                break;
            case 1568929:
                if (code.equals("3202")) {
                    c = '\f';
                    break;
                }
                break;
            case 1568930:
                if (code.equals("3203")) {
                    c = '\r';
                    break;
                }
                break;
            case 1568931:
                if (code.equals("3204")) {
                    c = 14;
                    break;
                }
                break;
            case 1568932:
                if (code.equals("3205")) {
                    c = 15;
                    break;
                }
                break;
            case 1569631:
                if (code.equals("32FF")) {
                    c = 16;
                    break;
                }
                break;
            case 1570850:
                if (code.equals("3401")) {
                    c = 19;
                    break;
                }
                break;
            case 1570851:
                if (code.equals("3402")) {
                    c = 20;
                    break;
                }
                break;
            case 1570852:
                if (code.equals("3403")) {
                    c = 21;
                    break;
                }
                break;
            case 1570853:
                if (code.equals("3404")) {
                    c = 22;
                    break;
                }
                break;
            case 1570854:
                if (code.equals("3405")) {
                    c = 23;
                    break;
                }
                break;
            case 1570855:
                if (code.equals("3406")) {
                    c = 24;
                    break;
                }
                break;
            case 1570856:
                if (code.equals("3407")) {
                    c = 25;
                    break;
                }
                break;
            case 1570857:
                if (code.equals("3408")) {
                    c = 26;
                    break;
                }
                break;
            case 1570858:
                if (code.equals("3409")) {
                    c = 27;
                    break;
                }
                break;
            case 1570880:
                if (code.equals("3410")) {
                    c = 28;
                    break;
                }
                break;
            case 1570881:
                if (code.equals("3411")) {
                    c = 29;
                    break;
                }
                break;
            case 1570882:
                if (code.equals("3412")) {
                    c = 30;
                    break;
                }
                break;
            case 1570883:
                if (code.equals("3413")) {
                    c = 31;
                    break;
                }
                break;
            case 1570884:
                if (code.equals("3414")) {
                    c = ' ';
                    break;
                }
                break;
            case 1570885:
                if (code.equals("3415")) {
                    c = '!';
                    break;
                }
                break;
            case 1570886:
                if (code.equals("3416")) {
                    c = '\"';
                    break;
                }
                break;
            case 1570887:
                if (code.equals("3417")) {
                    c = '#';
                    break;
                }
                break;
            case 1570888:
                if (code.equals("3418")) {
                    c = '$';
                    break;
                }
                break;
            case 1570889:
                if (code.equals("3419")) {
                    c = '%';
                    break;
                }
                break;
            case 1570911:
                if (code.equals("3420")) {
                    c = '&';
                    break;
                }
                break;
            case 1570912:
                if (code.equals("3421")) {
                    c = '\'';
                    break;
                }
                break;
            case 1570913:
                if (code.equals("3422")) {
                    c = '(';
                    break;
                }
                break;
            case 1570914:
                if (code.equals("3423")) {
                    c = ')';
                    break;
                }
                break;
            case 1570915:
                if (code.equals("3424")) {
                    c = '*';
                    break;
                }
                break;
            case 1570918:
                if (code.equals("3427")) {
                    c = '+';
                    break;
                }
                break;
            case 1570919:
                if (code.equals("3428")) {
                    c = ',';
                    break;
                }
                break;
            case 1570920:
                if (code.equals("3429")) {
                    c = '-';
                    break;
                }
                break;
            case 1570942:
                if (code.equals("3430")) {
                    c = '.';
                    break;
                }
                break;
            case 1570943:
                if (code.equals("3431")) {
                    c = '/';
                    break;
                }
                break;
            case 1570944:
                if (code.equals("3432")) {
                    c = '0';
                    break;
                }
                break;
            case 1570945:
                if (code.equals("3433")) {
                    c = '1';
                    break;
                }
                break;
            case 1570948:
                if (code.equals("3436")) {
                    c = '2';
                    break;
                }
                break;
            case 1570949:
                if (code.equals("3437")) {
                    c = '3';
                    break;
                }
                break;
            case 1570950:
                if (code.equals("3438")) {
                    c = '4';
                    break;
                }
                break;
            case 1570951:
                if (code.equals("3439")) {
                    c = '5';
                    break;
                }
                break;
            case 1570973:
                if (code.equals("3440")) {
                    c = '6';
                    break;
                }
                break;
            case 1570974:
                if (code.equals("3441")) {
                    c = '7';
                    break;
                }
                break;
            case 1570975:
                if (code.equals("3442")) {
                    c = '8';
                    break;
                }
                break;
            case 1570976:
                if (code.equals("3443")) {
                    c = '9';
                    break;
                }
                break;
            case 1570977:
                if (code.equals("3444")) {
                    c = ':';
                    break;
                }
                break;
            case 1570978:
                if (code.equals("3445")) {
                    c = ';';
                    break;
                }
                break;
            case 1570979:
                if (code.equals("3446")) {
                    c = '<';
                    break;
                }
                break;
            case 1570980:
                if (code.equals("3447")) {
                    c = '=';
                    break;
                }
                break;
            case 1571004:
                if (code.equals("3450")) {
                    c = '>';
                    break;
                }
                break;
            case 1571005:
                if (code.equals("3451")) {
                    c = '?';
                    break;
                }
                break;
            case 1571006:
                if (code.equals("3452")) {
                    c = '@';
                    break;
                }
                break;
            case 1571097:
                if (code.equals("3480")) {
                    c = 'A';
                    break;
                }
                break;
            case 1574694:
                if (code.equals("3801")) {
                    c = 'F';
                    break;
                }
                break;
            case 1574695:
                if (code.equals("3802")) {
                    c = 'G';
                    break;
                }
                break;
            case 1575655:
                if (code.equals("3901")) {
                    c = 'I';
                    break;
                }
                break;
            case 1575656:
                if (code.equals("3902")) {
                    c = 'J';
                    break;
                }
                break;
            case 1575657:
                if (code.equals("3903")) {
                    c = 'K';
                    break;
                }
                break;
            case 1576358:
                if (code.equals("39FF")) {
                    c = 'L';
                    break;
                }
                break;
            case 1657340:
                if (code.equals("6101")) {
                    c = 'r';
                    break;
                }
                break;
            case 1657341:
                if (code.equals("6102")) {
                    c = 's';
                    break;
                }
                break;
            case 1657342:
                if (code.equals("6103")) {
                    c = 't';
                    break;
                }
                break;
            case 1657343:
                if (code.equals("6104")) {
                    c = 'u';
                    break;
                }
                break;
            case 1657344:
                if (code.equals("6105")) {
                    c = 'v';
                    break;
                }
                break;
            case 1686170:
                if (code.equals("7001")) {
                    c = 'y';
                    break;
                }
                break;
            case 1686171:
                if (code.equals("7002")) {
                    c = 'z';
                    break;
                }
                break;
            case 1686172:
                if (code.equals("7003")) {
                    c = '{';
                    break;
                }
                break;
            case 1686173:
                if (code.equals("7004")) {
                    c = '|';
                    break;
                }
                break;
            case 1686174:
                if (code.equals("7005")) {
                    c = '}';
                    break;
                }
                break;
            case 1686175:
                if (code.equals("7006")) {
                    c = '~';
                    break;
                }
                break;
            case 1686176:
                if (code.equals("7007")) {
                    c = 127;
                    break;
                }
                break;
            case 1686177:
                if (code.equals("7008")) {
                    c = 128;
                    break;
                }
                break;
            case 1686178:
                if (code.equals("7009")) {
                    c = 129;
                    break;
                }
                break;
            case 1686200:
                if (code.equals("7010")) {
                    c = 130;
                    break;
                }
                break;
            case 1686201:
                if (code.equals("7011")) {
                    c = 131;
                    break;
                }
                break;
            case 1686202:
                if (code.equals("7012")) {
                    c = 132;
                    break;
                }
                break;
            case 1686203:
                if (code.equals("7013")) {
                    c = 133;
                    break;
                }
                break;
            case 1686204:
                if (code.equals("7014")) {
                    c = 134;
                    break;
                }
                break;
            case 1686873:
                if (code.equals("70FF")) {
                    c = 135;
                    break;
                }
                break;
            case 2133035:
                if (code.equals("F001")) {
                    c = 137;
                    break;
                }
                break;
            case 2133036:
                if (code.equals("F002")) {
                    c = 138;
                    break;
                }
                break;
            case 2133037:
                if (code.equals("F003")) {
                    c = 139;
                    break;
                }
                break;
            case 2133738:
                if (code.equals("F0FF")) {
                    c = 140;
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                name = "领导机构";
                break;
            case 1:
                name = "党委";
                break;
            case DateUtil.SUB_MONTH:
                name = "党的纪委";
                break;
            case 3:
                name = "人大";
                break;
            case 4:
                name = "政府";
                break;
            case DateUtil.SUB_DAY:
                name = "政协";
                break;
            case 6:
                name = "法院";
                break;
            case 7:
                name = "检察院";
                break;
            case '\b':
                name = "议事协调机构";
                break;
            case '\t':
                name = "机关（工作部门、办事机构、派出机构）";
                break;
            case DateUtil.SUB_HOUR:
                name = "党的纪委机关";
                break;
            case 11:
                name = "党委工作部门、办事机构、派出机构";
                break;
            case DateUtil.SUB_MINUTE:
                name = "党委办公厅、室";
                break;
            case DateUtil.SUB_SECOND:
                name = "党委组织部";
                break;
            case 14:
                name = "党委宣传部";
                break;
            case 15:
                name = "党委统战部";
                break;
            case 16 /* 16 */:
                name = "党委其他机关";
                break;
            case 17:
                name = "人大机关";
                break;
            case 18:
                name = "政府工作部门、办事机构、派出机构";
                break;
            case 19:
                name = "政府办公厅、室";
                break;
            case 20:
                name = "外交部门";
                break;
            case 21:
                name = "国防部门";
                break;
            case 22:
                name = "发改委";
                break;
            case 23:
                name = "教育（文教）部门";
                break;
            case 24:
                name = "科技部门";
                break;
            case 25:
                name = "工业和信息化部门";
                break;
            case 26:
                name = "民族事务部门";
                break;
            case 27:
                name = "公安部门";
                break;
            case 28:
                name = "国家安全部门";
                break;
            case 29:
                name = "监察部门";
                break;
            case 30:
                name = "民政部门";
                break;
            case 31:
                name = "司法部门";
                break;
            case ' ':
                name = "财政部门";
                break;
            case '!':
                name = "人力资源和社会保障部门";
                break;
            case '\"':
                name = "国土资源部门";
                break;
            case '#':
                name = "环境保护部门";
                break;
            case '$':
                name = "住房和城乡建设部门";
                break;
            case '%':
                name = "交通运输部门";
                break;
            case '&':
                name = "铁道部门";
                break;
            case '\'':
                name = "水利部门";
                break;
            case '(':
                name = "农业部门";
                break;
            case ')':
                name = "商务部门";
                break;
            case '*':
                name = "文化部门";
                break;
            case '+':
                name = "中国人民银行";
                break;
            case ',':
                name = "审计部门";
                break;
            case '-':
                name = "国有资产管理部门";
                break;
            case '.':
                name = "海关部门";
                break;
            case '/':
                name = "税务部门";
                break;
            case '0':
                name = "工商行政管理部门（市场监管部门）";
                break;
            case '1':
                name = "质检部门";
                break;
            case '2':
                name = "体育运动部门";
                break;
            case '3':
                name = "安全生产监管部门";
                break;
            case '4':
                name = "统计部门";
                break;
            case '5':
                name = "林业部门";
                break;
            case '6':
                name = "知识产权部门";
                break;
            case '7':
                name = "旅游部门";
                break;
            case '8':
                name = "宗教部门";
                break;
            case '9':
                name = "参事部门";
                break;
            case ':':
                name = "政府机关事务管理部门";
                break;
            case ';':
                name = "金融监管部门";
                break;
            case '<':
                name = "电力监管部门";
                break;
            case '=':
                name = "政府其他机关";
                break;
            case '>':
                name = "卫生和计划生育部门";
                break;
            case '?':
                name = "新闻、出版、广电部门";
                break;
            case '@':
                name = "食品药品监管部门";
                break;
            case 'A':
                name = "政府派出机关";
                break;
            case 'B':
                name = "政协机关";
                break;
            case 'C':
                name = "法院机关";
                break;
            case 'D':
                name = "检察院机关";
                break;
            case 'E':
                name = "民主党派和工商联";
                break;
            case 'F':
                name = "民主党派";
                break;
            case 'G':
                name = "工商联";
                break;
            case 'H':
                name = "人民团体";
                break;
            case 'I':
                name = "工会";
                break;
            case 'J':
                name = "共青团";
                break;
            case 'K':
                name = "妇联";
                break;
            case 'L':
                name = "其他人民团体";
                break;
            case 'M':
                name = "其他机关";
                break;
            case 'N':
                name = "事业单位";
                break;
            case 'O':
                name = "参照公务员管理的事业单位";
                break;
            case 'P':
                name = "参照公务员管理的事业单位(行政类)";
                break;
            case 'Q':
                name = "参照公务员管理的事业单位(公益一类)";
                break;
            case 'R':
                name = "参照公务员管理的事业单位(公益二类)";
                break;
            case 'S':
                name = "参照公务员法管理的事业单位（未分类）";
                break;
            case 'T':
                name = "其他事业单位";
                break;
            case 'U':
                name = "其他事业单位（行政类）";
                break;
            case 'V':
                name = "其他事业单位（公益一类）";
                break;
            case 'W':
                name = "其他事业单位（公益二类）";
                break;
            case 'X':
                name = "其他事业单位（生产经营类）";
                break;
            case 'Y':
                name = "其他事业单位（未分类）";
                break;
            case 'Z':
                name = "企业";
                break;
            case '[':
                name = "内资企业";
                break;
            case '\\':
                name = "国有企业";
                break;
            case ']':
                name = "集体企业";
                break;
            case '^':
                name = "股份合作企业";
                break;
            case '_':
                name = "联营企业";
                break;
            case '`':
                name = "有限责任公司";
                break;
            case 'a':
                name = "股份有限公司";
                break;
            case 'b':
                name = "私营企业";
                break;
            case 'c':
                name = "其他企业";
                break;
            case 'd':
                name = "港、澳、台商投资企业";
                break;
            case 'e':
                name = "合资经营企业（港或澳、台资）";
                break;
            case 'f':
                name = "合作经营企业（港或澳、台资）";
                break;
            case 'g':
                name = "港、澳、台商独资经营企业";
                break;
            case 'h':
                name = "港、澳、台商投资股份有限公司";
                break;
            case 'i':
                name = "其他港、澳、台商投资企业";
                break;
            case 'j':
                name = "外商投资企业";
                break;
            case 'k':
                name = "中外合资经营企业";
                break;
            case 'l':
                name = "中外合作经营企业";
                break;
            case 'm':
                name = "外资企业";
                break;
            case 'n':
                name = "外商投资股份有限公司";
                break;
            case 'o':
                name = "其他外商投资企业";
                break;
            case 'p':
                name = "社会组织及宗教团体";
                break;
            case 'q':
                name = "社会组织";
                break;
            case 'r':
                name = "社会团体";
                break;
            case 's':
                name = "民办非企业组织";
                break;
            case 't':
                name = "基金会";
                break;
            case 'u':
                name = "社会中介组织";
                break;
            case 'v':
                name = "城乡社区社会组织";
                break;
            case 'w':
                name = "宗教团体";
                break;
            case 'x':
                name = "军队";
                break;
            case 'y':
                name = "战区以上机关";
                break;
            case 'z':
                name = "战区以上机关附属单位";
                break;
            case '{':
                name = "军机关";
                break;
            case '|':
                name = "军机关附属单位";
                break;
            case '}':
                name = "师、旅、团机关及附属单位";
                break;
            case '~':
                name = "营以下部队";
                break;
            case 127:
                name = "省军区系统";
                break;
            case 128:
                name = "卫戍区、警备区系统";
                break;
            case 129:
                name = "军队院校";
                break;
            case 130:
                name = "军队医院、疗养院";
                break;
            case 131:
                name = "联勤保障部队";
                break;
            case 132:
                name = "军队仓库";
                break;
            case 133:
                name = "军队科研机构";
                break;
            case 134:
                name = "军队干休所";
                break;
            case 135:
                name = "军队其他单位";
                break;
            case 136:
                name = "其他";
                break;
            case 137:
                name = "个体工商户";
                break;
            case 138:
                name = "城镇个体工商户";
                break;
            case 139:
                name = "乡镇个体工商户";
                break;
            case 140:
                name = "其他单位";
                break;
            default:
                name = "";
                break;
        }
        return name;
    }

    private String getA1950(String code) {
        String name;
        char c = 65535;
        switch (code.hashCode()) {
            case 49:
                if (code.equals("1")) {
                    c = 0;
                    break;
                }
                break;
            case 51:
                if (code.equals("3")) {
                    c = 1;
                    break;
                }
                break;
            case 90:
                if (code.equals("Z")) {
                    c = 2;
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                name = "正职";
                break;
            case 1:
                name = "副职";
                break;
            case DateUtil.SUB_MONTH:
                name = "其他";
                break;
            default:
                name = "";
                break;
        }
        return name;
    }

    private String getA1010(String code) {
        String name;
        char c = 65535;
        switch (code.hashCode()) {
            case 49:
                if (code.equals("1")) {
                    c = 0;
                    break;
                }
                break;
            case 50:
                if (code.equals("2")) {
                    c = 1;
                    break;
                }
                break;
            case 51:
                if (code.equals("3")) {
                    c = 2;
                    break;
                }
                break;
            case 52:
                if (code.equals("4")) {
                    c = 4;
                    break;
                }
                break;
            case 57:
                if (code.equals("9")) {
                    c = 3;
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                name = "评审";
                break;
            case 1:
                name = "考试";
                break;
            case DateUtil.SUB_MONTH:
                name = "特批";
                break;
            case 3:
                name = "其他";
                break;
            case 4:
                name = "考核认定";
                break;
            default:
                name = "";
                break;
        }
        return name;
    }

    private String formatA0177(String text) {
        String text2 = text.replace("''", "''''");
        for (int i = 1900; i < 2099; i++) {
            text2 = text2.replace(" " + i + ".", "\r\n" + i + ".");
        }
        return text2.replace("\r\n\r\n", "\r\n");
    }

    public int getProcess() {
        return this.process;
    }

    public void setProcess(int process) {
        this.process = process;
    }
}
